From 016a926defe59ea4d0483da43b59b9f347e97e59 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 2 Aug 2002 00:55:27 +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. * cpuuse/task2.c, malloctest/task1.c, putenvtest/init.c, rtmonuse/task1.c, termios/init.c: Modified. --- testsuites/libtests/rtmonuse/task1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuites/libtests/rtmonuse') diff --git a/testsuites/libtests/rtmonuse/task1.c b/testsuites/libtests/rtmonuse/task1.c index 2d9a828f04..f1959bca70 100644 --- a/testsuites/libtests/rtmonuse/task1.c +++ b/testsuites/libtests/rtmonuse/task1.c @@ -50,7 +50,7 @@ rtems_task Task_1_through_5( if ( rmid != test_rmid ) { printf( "RMID's DO NOT MATCH (0x%x and 0x%x)\n", rmid, test_rmid ); - exit( 0 ); + rtems_test_exit( 0 ); } put_name( Task_name[ argument ], FALSE ); @@ -102,7 +102,7 @@ rtems_task Task_1_through_5( } if ( failed == 5 ) - exit( 0 ); + rtems_test_exit( 0 ); pass += 1; @@ -114,7 +114,7 @@ rtems_task Task_1_through_5( puts( "*** END OF RATE MONOTONIC PERIOD STATISTICS TEST ***" ); CPU_usage_Dump(); Period_usage_Dump(); - exit( 0 ); + rtems_test_exit( 0 ); } } -- cgit v1.2.3