diff options
Diffstat (limited to 'testsuites/psxtests/psxfile01/test.c')
-rw-r--r-- | testsuites/psxtests/psxfile01/test.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index bcecbcea37..e376b8fe05 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -30,6 +30,7 @@ #include <errno.h> #include <string.h> #include <ctype.h> +#include <reent.h> #include <rtems/imfs.h> #include <rtems.h> @@ -338,7 +339,13 @@ int main( rtems_test_assert( fd == -1 ); rtems_test_assert( errno == EINVAL ); - status = unlink( "/tmp/bha" ); + puts( "Exercise the reentrant version _link_r -- Expect EFAULT" ); + status = _link_r( NULL, NULL, NULL ); + rtems_test_assert( status == -1 ); + rtems_test_assert( errno == EFAULT ); + + puts( "Unlink /tmp/bha using the reentrant version -- OK" ); + status = _unlink_r( NULL, "/tmp/bha" ); rtems_test_assert( status == 0 ); /* |