diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-31 10:56:05 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-27 06:54:22 +0100 |
commit | cf36b70e8dd8755e7dac6eb516169f586e78566d (patch) | |
tree | 97200818ec5dfeaa4e137a572fcbb4db746842b1 /testsuites/psxtests/psximfs02 | |
parent | user/conf.t: Fix typo (diff) | |
download | rtems-cf36b70e8dd8755e7dac6eb516169f586e78566d.tar.bz2 |
IMFS: Replace node union with individual struct
This reduces the average node size.
Add and use IMFS_GENERIC_INITIALIZER().
Diffstat (limited to 'testsuites/psxtests/psximfs02')
-rw-r--r-- | testsuites/psxtests/psximfs02/init.c | 3 | ||||
-rw-r--r-- | testsuites/psxtests/psximfs02/psximfs02.scn | 32 |
2 files changed, 6 insertions, 29 deletions
diff --git a/testsuites/psxtests/psximfs02/init.c b/testsuites/psxtests/psximfs02/init.c index 9d45b75d52..c7e2d3c807 100644 --- a/testsuites/psxtests/psximfs02/init.c +++ b/testsuites/psxtests/psximfs02/init.c @@ -31,7 +31,6 @@ extern int seteuid(uid_t euid); /* forward declarations to avoid warnings */ rtems_task Init(rtems_task_argument argument); -void IMFS_dump(void); rtems_task Init( rtems_task_argument argument @@ -183,8 +182,6 @@ rtems_task Init( puts( "Creating a fifo -- OK" ); status = mkfifo( "/fifo", S_IRWXU ); rtems_test_assert( status == 0 ); - - IMFS_dump(); puts( "chown /fifo to 10 -- OK" ); status = chown( "/fifo", 10, 10 ); diff --git a/testsuites/psxtests/psximfs02/psximfs02.scn b/testsuites/psxtests/psximfs02/psximfs02.scn index f86e975821..930a0fa781 100644 --- a/testsuites/psxtests/psximfs02/psximfs02.scn +++ b/testsuites/psxtests/psximfs02/psximfs02.scn @@ -1,4 +1,4 @@ -*** TEST IMFS 02 *** +*** BEGIN OF TEST PSXIMFS 2 *** Creating directory /dir00 Creating directory /dir00/dir01 Changing directory to /dir00 @@ -24,42 +24,22 @@ Opening /node-link in WRONLY mode -- expect EACCES Creating a symlink /node-slink for /node Opening /node-slink in WRONLY mode -- expect EACCES Allocate most of heap -Attempt to mount a fs at /dir01 -- expect ENOMEM -Freeing allocated memory -Allocate most of heap +Attempt to mount a fs at dir01 -- expect ENOMEMFreeing allocated memory Changing directory to / +Allocate most of heap Attempt to create /node-link-2 for /node -- expect ENOMEM Attempt to create /node-slink-2 for /node -- expect ENOMEM Freeing allocated memory Allocate most of heap -Attempt to create /node-slink-2 for /node -- expect ENOMEM -Freeing allocated memory -Attempt to stat a hardlink -- expect ENOTSUP +Attempt to create node-slink-2 for /node -- expect ENOMEMFreeing allocated memory +Attempt to stat a hardlink Changing euid to 10 Attempt chmod on /node -- expect EPERM Attempt chown on /node -- expect EPERM Changing euid back to 0 [root] Creating a fifo -- OK -*************** Dump of Entire IMFS *************** -/ -....dev/ -........console (device 0, 0) -....dir00/ -........dir01/ -........dir01-link0 links not printed -........dir01-link1 links not printed -........dir01-link2 links not printed -........dir01-link3 links not printed -........dir01-link4 links not printed -........dir01-link5 links not printed -........dir01-link6 links not printed -....node (file 0) -....node-link links not printed -....node-slink links not printed -....fifo FIFO not printed -*************** 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 *** +*** END OF TEST PSXIMFS 2 *** |