forked from Imagelibrary/rtems
Filesystem: PR1619: Use ENOSYS for default statvfs
POSIX does not specify an error number in case the file system does not support this call. Use the Linux value.
This commit is contained in:
@@ -795,10 +795,10 @@ void test_statvfs(void)
|
||||
status = mkdir( "/tmp", 0777 );
|
||||
rtems_test_assert( status == 0 );
|
||||
|
||||
puts( "statvfs, with valid path - expect ENOTSUP" );
|
||||
puts( "statvfs, with valid path - expect ENOSYS" );
|
||||
status = statvfs( "/tmp", &stat );
|
||||
rtems_test_assert( status == -1 );
|
||||
rtems_test_assert( errno == ENOTSUP );
|
||||
rtems_test_assert( errno == ENOSYS );
|
||||
|
||||
puts( "statvfs tested!" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user