diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-02 10:18:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-13 12:23:44 +0100 |
commit | 3ba4f828e45141e9428a2c06d3d7c4bec3d5b404 (patch) | |
tree | f790e1259ffa11da3f993e58d2ceeb152b4133f3 /testsuites/psxtests/psxfchx01 | |
parent | Filesystem: Reference counting for locations (diff) | |
download | rtems-3ba4f828e45141e9428a2c06d3d7c4bec3d5b404.tar.bz2 |
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.
Diffstat (limited to 'testsuites/psxtests/psxfchx01')
-rw-r--r-- | testsuites/psxtests/psxfchx01/init.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 ); |