aboutsummaryrefslogtreecommitdiff
path: root/tests/fs-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fs-tests')
-rw-r--r--tests/fs-tests/lib/tests.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/fs-tests/lib/tests.c b/tests/fs-tests/lib/tests.c
index aaf3907..97e5207 100644
--- a/tests/fs-tests/lib/tests.c
+++ b/tests/fs-tests/lib/tests.c
@@ -995,7 +995,13 @@ void tests_remount(void)
target = tests_file_system_mount_dir;
filesystemtype = tests_file_system_type;
mountflags = 0;
- data = NULL;
+ data = mount_info.mnt_opts;
+ if (data) {
+ if (strcmp(data, "rw") == 0)
+ data = NULL;
+ else if (strncmp(data, "rw,", 3) == 0)
+ data += 3;
+ }
CHECK(mount(source, target, filesystemtype, mountflags, data) != -1);