diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-07 00:22:46 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-07 00:22:46 +0000 |
commit | 99e6fb5244c6c99341fed54bbc4cfbd2fcc4d8f5 (patch) | |
tree | 9ef3d6c56d179b4b9703f45d6fd9298cbba04d01 /testsuites/psxtests/psximfs02/init.c | |
parent | 2010-08-06 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-99e6fb5244c6c99341fed54bbc4cfbd2fcc4d8f5.tar.bz2 |
2010-08-06 Bharath Suri <bharath.s.jois@gmail.com>
PR 1654/testing
* psx13/test.c, psx13/psx13.scn: Test case to improve testing of
dup2 routine.
* psxfile01/test.c, psxfile01/psxfile01.scn: New test to improve
testing of fcntl routine.
* psximfs01/init.c, psximfs01/psximfs01.scn: Improve testing of
imfs routines.
* psximfs02/init.c, psximfs02/psximfs02.scn: Improve coverage of
imfs routines.
* psxpasswd02/init.c, psxpasswd02/psxpasswd02.scn: New tests to
improve coverage of getpwent.c.
Diffstat (limited to 'testsuites/psxtests/psximfs02/init.c')
-rw-r--r-- | testsuites/psxtests/psximfs02/init.c | 16 |
1 files changed, 16 insertions, 0 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); } |