source: SVN/cambria/redboot/host/infra/testsuite/cyginfra/ttrace3.cxx @ 1

Last change on this file since 1 was 1, checked in by Tim Harvey, 2 years ago

restored latest version of files from server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 2.3 KB
Line 
1//==========================================================================
2//
3//      ttrace3.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 an awful lot of tracing, to make sure that the
40//                      circular buffer is circular.
41//
42//####DESCRIPTIONEND####
43//==========================================================================
44
45
46#define CYGDBG_USE_TRACING
47#define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS
48#include <cyg/infra/testcase.h>
49#include <cyg/infra/cyg_trac.h>
50#include <cstdlib>
51
52void
53dummy(void)
54{
55    CYG_REPORT_FUNCNAME("dummy");
56    CYG_REPORT_RETURN();
57}
58
59int
60main(int argc, char** argv)
61{
62    for (int i = 0; i < 1000000; i++) {
63        CYG_TRACE0(true, "no argument here");
64        dummy();
65    }
66   
67    CYG_TEST_PASS_FINISH("Lots of tracing is possible");
68}
69
70
Note: See TracBrowser for help on using the repository browser.