summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxfchx01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxfchx01/init.c')
-rw-r--r--testsuites/psxtests/psxfchx01/init.c4
1 files changed, 2 insertions, 2 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 );