diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-19 13:13:20 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-19 13:13:20 +0000 |
commit | efdc6987a79fe1c6253a94a7ae6120b86d62ef81 (patch) | |
tree | 91aca53e15b1c93d38ff57dde65143073f6d73d7 /testsuites/psxtests/psxstat | |
parent | 2010-07-19 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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')
-rw-r--r-- | testsuites/psxtests/psxstat/psxstat.scn | 3 | ||||
-rw-r--r-- | testsuites/psxtests/psxstat/test.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxstat/psxstat.scn b/testsuites/psxtests/psxstat/psxstat.scn index 812ab65387..d29f87dda7 100644 --- a/testsuites/psxtests/psxstat/psxstat.scn +++ b/testsuites/psxtests/psxstat/psxstat.scn @@ -1704,12 +1704,13 @@ lstat( /my_mount_point/symlinks/a_dir_symlink/a_file_symlink ) returned ...st_ctime Sat Dec 31 09:00:35 1988 ...st_blksize 0 ...st_blocks 0 -statvfs, with invalid path - expect EFAULT +statvfs, with invalid path - expect ENOTSUP create /tmp -- OK statvfs, with valid path - expect ENOTSUP statvfs tested! Exercise the reentrant version - _stat_r - expect EFAULT Exercise the reentrant version - _lstat_r - expect EFAULT +Try readlink with a bad buffer - expect EFAULT *** END OF STAT TEST 01 *** 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); } |