summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxstat/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxstat/test.c')
-rw-r--r--testsuites/psxtests/psxstat/test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c
index 6a5f864007..45efb4d115 100644
--- a/testsuites/psxtests/psxstat/test.c
+++ b/testsuites/psxtests/psxstat/test.c
@@ -939,6 +939,11 @@ int main(
rtems_test_assert( status == -1 );
rtems_test_assert( errno == EFAULT );
+ puts( "Try readlink with a bad buffer - expect EFAULT" );
+ status = readlink( "/tmp", NULL, 0 );
+ rtems_test_assert( status == -1 );
+ rtems_test_assert( errno == EFAULT );
+
puts( "\n\n*** END OF STAT TEST 01 ***" );
rtems_test_exit(0);
}