From 3ba4f828e45141e9428a2c06d3d7c4bec3d5b404 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 2 Mar 2012 10:18:10 +0100 Subject: Filesystem: Read-only file system checks o Make sure EROFS is indicated for write operations on a read-only file system. o Add error indication for read-only file systems in fchmod() and fchown() according to POSIX. --- testsuites/psxtests/psxfchx01/init.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'testsuites/psxtests/psxfchx01') diff --git a/testsuites/psxtests/psxfchx01/init.c b/testsuites/psxtests/psxfchx01/init.c index 7ef030e5dc..56ff3c500b 100644 --- a/testsuites/psxtests/psxfchx01/init.c +++ b/testsuites/psxtests/psxfchx01/init.c @@ -184,10 +184,9 @@ rtems_task Init( fd = open( "/newfile", O_RDONLY | O_CREAT, S_IRWXU ); rtems_test_assert( fd != -1 ); - puts( "Init - fchown, with the opened file descriptor - expect EINVAL" ); + puts( "Init - fchown, with the opened file descriptor - OK" ); status = fchown( fd, 0, 0 ); - rtems_test_assert( status == -1 ); - rtems_test_assert( errno == EINVAL ); + rtems_test_assert( status == 0 ); puts( "Init - close and remove /newfile" ); status = close( fd ); -- cgit v1.2.3