summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxstat/test.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-19 13:13:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-19 13:13:20 +0000
commitefdc6987a79fe1c6253a94a7ae6120b86d62ef81 (patch)
tree91aca53e15b1c93d38ff57dde65143073f6d73d7 /testsuites/psxtests/psxstat/test.c
parent2010-07-19 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-efdc6987a79fe1c6253a94a7ae6120b86d62ef81.tar.bz2
2010-07-19 Bharath Suri <bharath.s.jois@gmail.com>
PR 1623/testing * psx13/test.c, psx13/psx13.scn: New cases to improve coverage of utime() and fpathconf(). * psxfile01/test.c, psxfile01/psxfile01.scn: New cases to improve coverage of rmdir(), unlink(), mknod(), link(), open(), read(), write(). * psxstat/test.c, psxstat/psxstat.scn: New case to improve coverage of readlink().
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);
}