summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxfile01/test_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxfile01/test_write.c')
-rw-r--r--testsuites/psxtests/psxfile01/test_write.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxfile01/test_write.c b/testsuites/psxtests/psxfile01/test_write.c
index c025734532..b87ba06624 100644
--- a/testsuites/psxtests/psxfile01/test_write.c
+++ b/testsuites/psxtests/psxfile01/test_write.c
@@ -16,6 +16,8 @@
#include <assert.h>
+#include <pmacros.h>
+
/*
* test_write routine
*/
@@ -36,7 +38,7 @@ void test_write(
fd = open( file, O_WRONLY );
if ( fd == -1 ) {
printf( "test_write: open( %s ) failed : %s\n", file, strerror( errno ) );
- exit( 0 );
+ rtems_test_exit( 0 );
}
status = lseek( fd, offset, SEEK_SET );
@@ -45,13 +47,13 @@ void test_write(
status = write( fd, buffer, length );
if ( status == -1 ) {
printf( "test_write: write( %s ) failed : %s\n", file, strerror( errno ) );
- exit( 0 );
+ rtems_test_exit( 0 );
}
if ( status != length ) {
printf( "test_write: write( %s ) only wrote %d of %d bytes\n",
file, status, length );
- exit( 0 );
+ rtems_test_exit( 0 );
}
status = close( fd );