OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [infra/] [testsuite/] [cyginfra/] [ttrace4.cxx] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//==========================================================================
2
//
3
//      ttrace4.cxx
4
//
5
//      Trace test case                                                                
6
//
7
//==========================================================================
8
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
9
// -------------------------------------------                              
10
// This file is part of the eCos host tools.                                
11
// Copyright (C) 1999, 2000 Free Software Foundation, Inc.                  
12
//
13
// This program is free software; you can redistribute it and/or modify     
14
// it under the terms of the GNU General Public License as published by     
15
// the Free Software Foundation; either version 2 or (at your option) any   
16
// later version.                                                           
17
//
18
// This program is distributed in the hope that it will be useful, but      
19
// WITHOUT ANY WARRANTY; without even the implied warranty of               
20
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
21
// General Public License for more details.                                 
22
//
23
// You should have received a copy of the GNU General Public License        
24
// along with this program; if not, write to the                            
25
// Free Software Foundation, Inc., 51 Franklin Street,                      
26
// Fifth Floor, Boston, MA  02110-1301, USA.                                
27
// -------------------------------------------                              
28
// ####ECOSHOSTGPLCOPYRIGHTEND####                                          
29
//==========================================================================
30
//#####DESCRIPTIONBEGIN####                                             
31
//
32
// Author(s):           bartv
33
// Contributors:        bartv
34
// Date:                1999-01-06
35
// Purpose:
36
// Description:         Do lots of tracing and generate a dump. The test
37
//                      harness checks that there is lots of output and
38
//                      that the first line matches expectations.
39
//
40
//####DESCRIPTIONEND####
41
//==========================================================================
42
 
43
 
44
#define CYGDBG_USE_ASSERTS
45
#define CYGDBG_USE_TRACING
46
#define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS
47
#include <cyg/infra/testcase.h>
48
#include <cyg/infra/cyg_trac.h>
49
#include <cyg/infra/cyg_ass.h>
50
#include <cstdlib>
51
 
52
void
53
dummy(void)
54
{
55
    CYG_REPORT_FUNCNAME("dummy");
56
    CYG_REPORT_RETURN();
57
}
58
 
59
int
60
main(int argc, char** argv)
61
{
62
    for (int i = 0; i < 100000; i++) {
63
        CYG_TRACE0(true, "no argument here");
64
        dummy();
65
    }
66
    CYG_TRACE0(true, "Goodbye and thanks for all the fish");
67
    CYG_FAIL("intentional");
68
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.