diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-22 20:23:21 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-07-22 20:23:21 +0000 |
commit | 50e4a1b16e00f046292ff5f5c9bf587b2912c3dd (patch) | |
tree | f501d2ab5a891e73bb11fd2f2b6912a8237d1b5f /testsuites/psxtests/psxfchx01 | |
parent | 2011-07-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-50e4a1b16e00f046292ff5f5c9bf587b2912c3dd.tar.bz2 |
2011-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1839/filesystem
* psxfchx01/init.c, psxfchx01/psxfchx01.scn, psxfile01/psxfile01.scn,
psxfile01/test.c: Update test to reflect new status codes.
Diffstat (limited to 'testsuites/psxtests/psxfchx01')
-rw-r--r-- | testsuites/psxtests/psxfchx01/init.c | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psxfchx01/psxfchx01.scn | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/psxtests/psxfchx01/init.c b/testsuites/psxtests/psxfchx01/init.c index 09d24f6f20..9b984cd71e 100644 --- a/testsuites/psxtests/psxfchx01/init.c +++ b/testsuites/psxtests/psxfchx01/init.c @@ -50,10 +50,10 @@ rtems_task Init( fd = open( "/newfile", O_WRONLY | O_CREAT, S_IWUSR ); rtems_test_assert( fd != -1 ); - puts( "Init - fchdir on the file descriptor - expect EINVAL" ); + puts( "Init - fchdir on the file descriptor - expect ENOTDIR" ); status = fchdir( fd ); rtems_test_assert( status == -1 ); - rtems_test_assert( errno == EINVAL ); + rtems_test_assert( errno == ENOTDIR ); puts( "Init - closing /newfile -- OK" ); status = close( fd ); diff --git a/testsuites/psxtests/psxfchx01/psxfchx01.scn b/testsuites/psxtests/psxfchx01/psxfchx01.scn index d1ed655061..761195fd77 100644 --- a/testsuites/psxtests/psxfchx01/psxfchx01.scn +++ b/testsuites/psxtests/psxfchx01/psxfchx01.scn @@ -3,7 +3,7 @@ Init - fchdir tests Init - Attempt fchdir with bad file descriptor - expect EBADF Init - Attempt fchdir with bad file descriptor - expect EBADF Init - opening /newfile in write-mode -- OK -Init - fchdir on the file descriptor - expect EINVAL +Init - fchdir on the file descriptor - expect ENOTDIR Init - closing /newfile -- OK Init - removing /newfile -- OK Init - opening /newfile in read-mode -- OK |