diff options
Diffstat (limited to 'c/src/tests/psxtests/psxfile01/test_extend.c')
-rw-r--r-- | c/src/tests/psxtests/psxfile01/test_extend.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/c/src/tests/psxtests/psxfile01/test_extend.c b/c/src/tests/psxtests/psxfile01/test_extend.c index ae284aab46..3ab66c1410 100644 --- a/c/src/tests/psxtests/psxfile01/test_extend.c +++ b/c/src/tests/psxtests/psxfile01/test_extend.c @@ -21,6 +21,8 @@ #include <assert.h> +#include <pmacros.h> + /* * test_extend routine */ @@ -37,7 +39,7 @@ void test_extend( fd = open( file, O_WRONLY ); if ( fd == -1 ) { printf( "test_extend: open( %s ) failed : %s\n", file, strerror( errno ) ); - exit( 0 ); + rtems_test_exit( 0 ); } status = lseek( fd, offset - 1, SEEK_SET ); @@ -46,13 +48,13 @@ void test_extend( status = write( fd, &c, 1 ); if ( status == -1 ) { printf( "test_extend: write( %s ) failed : %s\n", file, strerror( errno ) ); - exit( 0 ); + rtems_test_exit( 0 ); } if ( status != 1 ) { printf( "test_extend: write( %s ) only wrote %d of %d bytes\n", file, status, 1 ); - exit( 0 ); + rtems_test_exit( 0 ); } status = close( fd ); |