diff options
Diffstat (limited to 'testsuites/psxtests/psximfs02')
-rw-r--r-- | testsuites/psxtests/psximfs02/init.c | 16 | ||||
-rw-r--r-- | testsuites/psxtests/psximfs02/psximfs02.scn | 7 |
2 files changed, 21 insertions, 2 deletions
diff --git a/testsuites/psxtests/psximfs02/init.c b/testsuites/psxtests/psximfs02/init.c index 132e546c86..7482fbc528 100644 --- a/testsuites/psxtests/psximfs02/init.c +++ b/testsuites/psxtests/psximfs02/init.c @@ -161,6 +161,22 @@ rtems_task Init( IMFS_dump(); + puts( "chown /fifo to 10 -- OK" ); + status = chown( "/fifo", 10, 10 ); + rtems_test_assert( status == 0 ); + + puts( "Changing euid to 10" ); + status = seteuid( 10 ); + rtems_test_assert( status == 0 ); + + puts( "chmod /fifo -- OK" ); + status = chmod( "/fifo", S_IRWXU ); + rtems_test_assert( status == 0 ); + + printk( "chown /fifo to %o -- OK", 0 ); + status = chown( "/fifo", 0, 0 ); + rtems_test_assert( status == 0 ); + puts( "*** END OF TEST IMFS 02 ***" ); rtems_test_exit(0); } diff --git a/testsuites/psxtests/psximfs02/psximfs02.scn b/testsuites/psxtests/psximfs02/psximfs02.scn index 60fda98a4d..4a5ac027e1 100644 --- a/testsuites/psxtests/psximfs02/psximfs02.scn +++ b/testsuites/psxtests/psximfs02/psximfs02.scn @@ -57,5 +57,8 @@ Creating a fifo -- OK ....node-link links not printed ....node-slink links not printed ....fifo FIFO not printed -*************** End of Dump *************** -*** END OF TEST IMFS 02 *** +*************** End of Dump *************** +chown /fifo to 10 -- OK +Changing euid to 10 +chmod /fifo -- OK +chown /fifo to 0 -- OK*** END OF TEST IMFS 02 *** |