diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-16 15:01:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-16 15:01:11 +0000 |
commit | 917e4b4781594d1e6257b554c65fb3bb0b467a58 (patch) | |
tree | 86dfc7017a4dc7b650d92afed62fe89ee6c27306 /testsuites/sptests/spmountmgr01/init.c | |
parent | 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-917e4b4781594d1e6257b554c65fb3bb0b467a58.tar.bz2 |
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.
Diffstat (limited to 'testsuites/sptests/spmountmgr01/init.c')
-rw-r--r-- | testsuites/sptests/spmountmgr01/init.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuites/sptests/spmountmgr01/init.c b/testsuites/sptests/spmountmgr01/init.c index 4e5b8a4282..69b36a2f2e 100644 --- a/testsuites/sptests/spmountmgr01/init.c +++ b/testsuites/sptests/spmountmgr01/init.c @@ -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 ); |