aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-24 17:09:41 +0200
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-24 20:50:44 +0200
commit53de0adb1a8f99dcd6d6af9a2c2f3547e1cfeb2b (patch)
tree3eec38c1dd1615d7589ac4b516b57c7743efba2c /test
parent30ead3a5cf6405dab9d5eeac79ffe6a0e9d0aafd (diff)
Don't use -o auto_unmount under FreeBSD.
Diffstat (limited to 'test')
-rw-r--r--test/test_setattr.c2
-rw-r--r--test/test_write_cache.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/test_setattr.c b/test/test_setattr.c
index 017b5e2..dc6b474 100644
--- a/test/test_setattr.c
+++ b/test/test_setattr.c
@@ -154,7 +154,9 @@ int main(int argc, char *argv[]) {
pthread_t fs_thread;
assert(fuse_parse_cmdline(&args, &fuse_opts) == 0);
+#ifndef __FreeBSD__
assert(fuse_opt_add_arg(&args, "-oauto_unmount") == 0);
+#endif
se = fuse_session_new(&args, &tfs_oper,
sizeof(tfs_oper), NULL);
assert (se != NULL);
diff --git a/test/test_write_cache.c b/test/test_write_cache.c
index a5fafd7..ac813a9 100644
--- a/test/test_write_cache.c
+++ b/test/test_write_cache.c
@@ -186,7 +186,9 @@ int main(int argc, char *argv[]) {
assert(fuse_opt_parse(&args, &options, option_spec, NULL) == 0);
assert(fuse_parse_cmdline(&args, &fuse_opts) == 0);
+#ifndef __FreeBSD__
assert(fuse_opt_add_arg(&args, "-oauto_unmount") == 0);
+#endif
se = fuse_session_new(&args, &tfs_oper,
sizeof(tfs_oper), NULL);
assert (se != NULL);