summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxfile01/test_extend.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxfile01/test_extend.c')
-rw-r--r--testsuites/psxtests/psxfile01/test_extend.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxfile01/test_extend.c b/testsuites/psxtests/psxfile01/test_extend.c
index ae284aab46..3ab66c1410 100644
--- a/testsuites/psxtests/psxfile01/test_extend.c
+++ b/testsuites/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 );