From 50e4a1b16e00f046292ff5f5c9bf587b2912c3dd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 22 Jul 2011 20:23:21 +0000 Subject: 2011-07-22 Joel Sherrill PR 1839/filesystem * psxfchx01/init.c, psxfchx01/psxfchx01.scn, psxfile01/psxfile01.scn, psxfile01/test.c: Update test to reflect new status codes. --- testsuites/psxtests/psxfchx01/init.c | 4 ++-- testsuites/psxtests/psxfchx01/psxfchx01.scn | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuites/psxtests/psxfchx01') 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 -- cgit v1.2.3