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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [infra/] [testsuite/] [cyginfra/] [ttrace4.cxx] - Blame information for rev 455

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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