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/malloctest/task1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/libtests/malloctest/task1.c') diff --git a/testsuites/libtests/malloctest/task1.c b/testsuites/libtests/malloctest/task1.c index 737a8dab59..0b21c6adec 100644 --- a/testsuites/libtests/malloctest/task1.c +++ b/testsuites/libtests/malloctest/task1.c @@ -39,7 +39,7 @@ rtems_task Task_1_through_5( { if ( passes++ > NUM_PASSES ) { puts("*** END OF MALLOC TEST ***"); - exit(0); + rtems_test_exit(0); } status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time ); @@ -63,7 +63,7 @@ rtems_task Task_1_through_5( if ( mem_ptr[i] != (mem_amt & 0xff)) { printf("failed %d, %d, 0x%x, 0x%x\n",i,mem_amt,mem_ptr[i],mem_amt&0xff); - exit(1); + rtems_test_exit(1); } } directive_failed( status, "rtems_task_wake_after" ); -- cgit v1.2.3