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/psx13/test.c | |
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 '')
-rw-r--r-- | testsuites/psxtests/psx13/test.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/testsuites/psxtests/psx13/test.c b/testsuites/psxtests/psx13/test.c index 10ff6bd5ca..cc8b09e710 100644 --- a/testsuites/psxtests/psx13/test.c +++ b/testsuites/psxtests/psx13/test.c @@ -415,9 +415,11 @@ int UTimeTest (void) else retval = FALSE; } - else retval = FALSE; + + error = utime("testfile1.tst", NULL ); + retval &= (error == 0) ? TRUE : FALSE; } /* assert (retval == TRUE);*/ @@ -563,6 +565,12 @@ int FPathConfTest (void) error = fpathconf(fd, _PC_SYNC_IO); error = fpathconf(fd, 255); + close(fd); + + fd = open("testfile1.tst", O_WRONLY); + + error = fpathconf(fd, _PC_LINK_MAX); + retval = TRUE; } |