[rtems commit] fsdosfsformat01: Add test for re-mount of a filesystem

Gedare Bloom gedare at rtems.org
Fri Oct 18 16:01:33 UTC 2013


Module:    rtems
Branch:    master
Commit:    0098c5221d5a30d10202cb71d89e36d24ce48b0d
Changeset: http://git.rtems.org/rtems/commit/?id=0098c5221d5a30d10202cb71d89e36d24ce48b0d

Author:    Ralf Kirchner <ralf.kirchner at embedded-brains.de>
Date:      Fri Oct 18 12:07:10 2013 -0400

fsdosfsformat01: Add test for re-mount of a filesystem

---

 testsuites/fstests/fsdosfsformat01/init.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/testsuites/fstests/fsdosfsformat01/init.c b/testsuites/fstests/fsdosfsformat01/init.c
index 6299c9b..03b2071 100644
--- a/testsuites/fstests/fsdosfsformat01/init.c
+++ b/testsuites/fstests/fsdosfsformat01/init.c
@@ -83,6 +83,17 @@ static void test_disk_params(
 
   rv = unmount( mount_dir );
   rtems_test_assert( 0 == rv );
+
+  /* See if we can re-mount the file system */
+  rv = mount( dev_name,
+              mount_dir,
+              RTEMS_FILESYSTEM_TYPE_DOSFS,
+              RTEMS_FILESYSTEM_READ_WRITE,
+              NULL );
+  rtems_test_assert( 0 == rv );
+
+  rv = unmount( mount_dir );
+  rtems_test_assert( 0 == rv );
 }
 
 static void test_create_file(




More information about the vc mailing list