Don't use -o auto_unmount under FreeBSD.
authorNikolaus Rath <Nikolaus@rath.org>
Thu, 24 Aug 2017 15:09:41 +0000 (17:09 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Thu, 24 Aug 2017 18:50:44 +0000 (20:50 +0200)
test/test_setattr.c
test/test_write_cache.c

index 017b5e2b8e01d29ef12c87626a64aad39f8c932c..dc6b47427b309ef07f3509964707ed70b99ad808 100644 (file)
@@ -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);
index a5fafd768a4da16bff367716ca5a1223b903f9c2..ac813a9b68946b08b7d8fafa68779d263e47ad63 100644 (file)
@@ -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);