From 6b9d16fc2701c0f4f481a12657d4318950b0d75a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 2 Aug 2002 00:53:38 +0000 Subject: 2002-08-01 Joel Sherrill * Per PR47 add support for buffered test output. This involved adding defines to redirect output to a buffer and dump it when full, at "test pause", and at exit. To avoid problems when redefining exit(), all tests were modified to call rtems_test_exit(). Some tests, notable psxtests, had to be modified to include the standard test macro .h file (pmacros.h or tmacros.h) to enable this support. * itronhello/init.c, itronmbf01/init.c, itronmbox01/init.c, itronsem01/init.c, itrontask01/task1.c, itrontask02/init.c, itrontask03/task1.c, itrontask04/task3.c, itrontime01/init.c: Modified. --- testsuites/itrontests/ChangeLog | 13 +++++++++++++ testsuites/itrontests/itronhello/init.c | 2 +- testsuites/itrontests/itronmbf01/init.c | 2 +- testsuites/itrontests/itronmbox01/init.c | 2 +- testsuites/itrontests/itronsem01/init.c | 2 +- testsuites/itrontests/itrontask01/task1.c | 2 +- testsuites/itrontests/itrontask02/init.c | 2 +- testsuites/itrontests/itrontask03/task1.c | 2 +- testsuites/itrontests/itrontask04/task3.c | 2 +- testsuites/itrontests/itrontime01/init.c | 2 +- 10 files changed, 22 insertions(+), 9 deletions(-) (limited to 'testsuites/itrontests') diff --git a/testsuites/itrontests/ChangeLog b/testsuites/itrontests/ChangeLog index ebb52c8b5a..5cb0344c08 100644 --- a/testsuites/itrontests/ChangeLog +++ b/testsuites/itrontests/ChangeLog @@ -1,3 +1,16 @@ +2002-08-01 Joel Sherrill + + * Per PR47 add support for buffered test output. This involved + adding defines to redirect output to a buffer and dump it when + full, at "test pause", and at exit. To avoid problems when redefining + exit(), all tests were modified to call rtems_test_exit(). + Some tests, notable psxtests, had to be modified to include + the standard test macro .h file (pmacros.h or tmacros.h) to + enable this support. + * itronhello/init.c, itronmbf01/init.c, itronmbox01/init.c, + itronsem01/init.c, itrontask01/task1.c, itrontask02/init.c, + itrontask03/task1.c, itrontask04/task3.c, itrontime01/init.c: Modified. + 2002-04-14 Ralf Corsepius * configure.ac: Remove ENABLE_GCC28. diff --git a/testsuites/itrontests/itronhello/init.c b/testsuites/itrontests/itronhello/init.c index 62a8c8ac37..425623ff5e 100644 --- a/testsuites/itrontests/itronhello/init.c +++ b/testsuites/itrontests/itronhello/init.c @@ -29,5 +29,5 @@ void ITRON_Init( void ) printf( "\n\n*** ITRON HELLO WORLD TEST ***\n" ); printf( "Hello World\n" ); printf( "*** END OF ITRON HELLO WORLD TEST ***\n" ); - exit( 0 ); + rtems_test_exit( 0 ); } diff --git a/testsuites/itrontests/itronmbf01/init.c b/testsuites/itrontests/itronmbf01/init.c index 3c2714a35f..575d1b61f2 100644 --- a/testsuites/itrontests/itronmbf01/init.c +++ b/testsuites/itrontests/itronmbf01/init.c @@ -62,7 +62,7 @@ void ITRON_Init( void ) TestTrcv(); printf("\n\n*** ITRONMBF01 --- ITRON MESSAGE BUFFER TEST ***\n"); - exit(0); + rtems_test_exit(0); } void TestCre() diff --git a/testsuites/itrontests/itronmbox01/init.c b/testsuites/itrontests/itronmbox01/init.c index 64d3f61bac..41fa8566ee 100644 --- a/testsuites/itrontests/itronmbox01/init.c +++ b/testsuites/itrontests/itronmbox01/init.c @@ -30,7 +30,7 @@ void ITRON_Init( void ) printf( "\n\n*** ITRON MBOX TEST 01 ***\n" ); printf( "ITRON Mailboxes are implemented but there is currently no test.\n" ); printf( "*** END OF ITRON MBOX TEST 01 ***\n" ); - exit( 0 ); + rtems_test_exit( 0 ); } diff --git a/testsuites/itrontests/itronsem01/init.c b/testsuites/itrontests/itronsem01/init.c index 44aaff3912..64e3229f3f 100644 --- a/testsuites/itrontests/itronsem01/init.c +++ b/testsuites/itrontests/itronsem01/init.c @@ -328,5 +328,5 @@ void ITRON_Init( void ) assert( status == E_OK ); printf( "*** END OF ITRONSEM01 -- ITRON SEMAPHORE TEST ***\n" ); - exit( 0 ); + rtems_test_exit( 0 ); } diff --git a/testsuites/itrontests/itrontask01/task1.c b/testsuites/itrontests/itrontask01/task1.c index da12424800..72d09afff7 100644 --- a/testsuites/itrontests/itrontask01/task1.c +++ b/testsuites/itrontests/itrontask01/task1.c @@ -41,7 +41,7 @@ void Task_2_through_4() if ( time.second >= 35 ) { puts( "*** END OF ITRON TASK TEST 1 ***" ); - exit( 0 ); + rtems_test_exit( 0 ); } printf(name); diff --git a/testsuites/itrontests/itrontask02/init.c b/testsuites/itrontests/itrontask02/init.c index 43957dcf4f..b00ef69d18 100644 --- a/testsuites/itrontests/itrontask02/init.c +++ b/testsuites/itrontests/itrontask02/init.c @@ -576,5 +576,5 @@ XXXXX - FIX ME #endif puts( "*** END OF ITRON TASK TEST 2 ***" ); - exit( 0 ); + rtems_test_exit( 0 ); } diff --git a/testsuites/itrontests/itrontask03/task1.c b/testsuites/itrontests/itrontask03/task1.c index 5247db714b..9bd44f54e9 100644 --- a/testsuites/itrontests/itrontask03/task1.c +++ b/testsuites/itrontests/itrontask03/task1.c @@ -53,5 +53,5 @@ void Task_1() directive_failed( status, "rtems_task_wake_after" ); puts( "*** ITRON TASK TEST 3 ***" ); - exit( 0 ); + rtems_test_exit( 0 ); } diff --git a/testsuites/itrontests/itrontask04/task3.c b/testsuites/itrontests/itrontask04/task3.c index 4157eccb5f..58988ac6fb 100644 --- a/testsuites/itrontests/itrontask04/task3.c +++ b/testsuites/itrontests/itrontask04/task3.c @@ -48,6 +48,6 @@ void Task_3() } puts( "*** ITRON TASK TEST 4 ***" ); - exit( 0 ); + rtems_test_exit( 0 ); } diff --git a/testsuites/itrontests/itrontime01/init.c b/testsuites/itrontests/itrontime01/init.c index 55a7735f0e..10f91f0436 100644 --- a/testsuites/itrontests/itrontime01/init.c +++ b/testsuites/itrontests/itrontime01/init.c @@ -56,7 +56,7 @@ void ITRON_Init( void ) printf( "\n\n*** ITRON TIME TEST 01 ***\n" ); printf( "The Time Services are not completely implemented.\n" ); printf( "*** END OF ITRON TIME TEST 01 ***\n" ); - exit( 0 ); + rtems_test_exit( 0 ); } -- cgit v1.2.3