From 53de0adb1a8f99dcd6d6af9a2c2f3547e1cfeb2b Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 24 Aug 2017 17:09:41 +0200 Subject: Don't use -o auto_unmount under FreeBSD. --- test/test_setattr.c | 2 ++ test/test_write_cache.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'test') 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); -- cgit v1.2.3