2010-07-16 Bharath Suri <bharath.s.jois@gmail.com>

PR 1617/testing
	* spmountmgr01/init.c, spmountmgr01/spmountmgr01.scn,
	spmountmgr01/spmountmgr01.doc: Added cases to exercise
	mount-mktgt.c.
This commit is contained in:
Joel Sherrill
2010-07-16 15:01:11 +00:00
parent b8e7e2f623
commit 917e4b4781
4 changed files with 37 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2010-07-16 Bharath Suri <bharath.s.jois@gmail.com>
PR 1617/testing
* spmountmgr01/init.c, spmountmgr01/spmountmgr01.scn,
spmountmgr01/spmountmgr01.doc: Added cases to exercise
mount-mktgt.c.
2010-07-15 Bharath Suri <bharath.s.jois@gmail.com>
PR 1617/testing

View File

@@ -50,6 +50,27 @@ rtems_task Init(
status = rtems_filesystem_register( "fs", fs_mount );
rtems_test_assert( status == 0 );
puts( "Init - attempt to make target(NULL) and mount - expect EINVAL" );
status = mount_and_make_target_path(
NULL,
NULL,
"fs",
0,
NULL );
rtems_test_assert( status == -1 );
rtems_test_assert( errno == EINVAL );
puts( "Init - attempt to make target and mount - expect EINVAL" );
status = mount_and_make_target_path(
NULL,
"/tmp",
"fs",
2,
NULL );
rtems_test_assert( status == -1 );
rtems_test_assert( errno == EINVAL );
puts( "Init - register filesystem fs - expect EINVAL" );
status = rtems_filesystem_register( "fs", fs_mount );
rtems_test_assert( status == -1 );

View File

@@ -17,9 +17,13 @@ directives:
+ rtems_filesystem_register
+ rtems_filesystem_unregister
+ mount_and_make_target_path
concepts:
+ Exercise the routines of mount-mgr.c under libcsupport.
+ These routines are mostly to register / unregister new filesytem
+ Exercise the routines of mount-mgr.c and mount-mktgt.c under libcsupport.
+ The routines in mount-mgr.c are mostly to register / unregister new filesytem
for later use.
+ The routines in mount-mktgt.c are used to mount a filesystem at a
target path. If the target path does not exist, it is created and then
the mount is processed

View File

@@ -1,8 +1,11 @@
*** TEST MOUNT MANAGER ROUTINE - 01 ***
Init - allocating most of heap -- OK
Init - attempt to register filesystem fs - expect ENOMEM
Init - freeing allocated memory -- OK
Init - register filesystem fs -- OK
Init - attempt to make target(NULL) and mount - expect EINVAL
Init - attempt to make target and mount - expect EINVAL
Init - register filesystem fs - expect EINVAL
Init - register filesystem bfs -- OK
Init - register filesystem bfs - expect EINVAL