summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/spmountmgr01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/sptests/spmountmgr01/init.c')
-rw-r--r--testsuites/sptests/spmountmgr01/init.c21
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 );