summaryrefslogtreecommitdiffstats
path: root/c/src/tests/psxtests/psxmount/test.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-08-02 00:53:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-08-02 00:53:21 +0000
commitd8024895e30c6ad773bda91d5bc4038db675b033 (patch)
tree133f7e9a783f06610f87bdde59ccd5ae0ecfdd65 /c/src/tests/psxtests/psxmount/test.c
parent2002-08-01 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-d8024895e30c6ad773bda91d5bc4038db675b033.tar.bz2
2002-08-01 Joel Sherrill <joel@OARcorp.com>
* 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. * include/pmacros.h, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c, psx04/init.c, psx05/init.c, psx06/init.c, psx07/init.c, psx08/task3.c, psx09/init.c, psx10/init.c, psx11/init.c, psx12/init.c, psx13/Makefile.am, psx13/main.c, psx13/test.c, psxcancel/init.c, psxchroot01/Makefile.am, psxchroot01/main.c, psxchroot01/test.c, psxfile01/Makefile.am, psxfile01/main.c, psxfile01/test.c, psxfile01/test_cat.c, psxfile01/test_extend.c, psxfile01/test_write.c, psxmount/Makefile.am, psxmount/main.c, psxmount/test.c, psxmsgq01/init.c, psxreaddir/Makefile.am, psxreaddir/main.c, psxreaddir/test.c, psxsem01/init.c, psxstat/Makefile.am, psxstat/main.c, psxstat/test.c, psxtime/main.c, psxtime/test.c, psxtimer/psxtimer.c: Modified.
Diffstat (limited to 'c/src/tests/psxtests/psxmount/test.c')
-rw-r--r--c/src/tests/psxtests/psxmount/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/tests/psxtests/psxmount/test.c b/c/src/tests/psxtests/psxmount/test.c
index fb420391e0..bf4a704c26 100644
--- a/c/src/tests/psxtests/psxmount/test.c
+++ b/c/src/tests/psxtests/psxmount/test.c
@@ -31,6 +31,7 @@
#include <rtems.h>
#include <rtems/libio.h>
#include <imfs.h>
+#include <pmacros.h>
extern rtems_filesystem_location_info_t rtems_filesystem_current;
@@ -441,6 +442,6 @@ int main(
assert( status == 0 );
printf( "\n\n*** END OF MOUNT/UNMOUNT TEST ***\n" );
- exit(0);
+ rtems_test_exit(0);
}