[PATCH 1/2] fsdosfsformat01: Add test for re-mount of a filesystem
Ralf Kirchner
ralf.kirchner at embedded-brains.de
Fri Oct 18 07:37:25 UTC 2013
---
testsuites/fstests/fsdosfsformat01/init.c | 11 +++++++++++
1 Datei geändert, 11 Zeilen hinzugefügt(+)
diff --git a/testsuites/fstests/fsdosfsformat01/init.c b/testsuites/fstests/fsdosfsformat01/init.c
index 6299c9b..3026dbb 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(
--
1.7.10.4
More information about the devel
mailing list