From ef44d5b2b3ba4ff4f1c8d60f125f521be9cd0e78 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Tue, 14 Mar 2017 00:09:20 +0000 Subject: Run tests on FreeBSD 10.3 and fix tests so they pass. Fully fixes issue #51. --- tests/common.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/common.rb') diff --git a/tests/common.rb b/tests/common.rb index b3a14e4..24fd036 100644 --- a/tests/common.rb +++ b/tests/common.rb @@ -123,7 +123,12 @@ def testenv(bindfs_args, options = {}, &block) bindfs_pid = nil begin - cmd = "../#{EXECUTABLE_PATH} #{bindfs_args} -f #{Shellwords.escape(srcdir)} #{Shellwords.escape(mntdir)}" + extra_args = "-f" + # Don't rely on user_allow_other in /etc/fuse.conf. + # On FreeBSD it isn't even possible to set that. + extra_args += " --no-allow-other" if Process.uid != 0 + + cmd = "../#{EXECUTABLE_PATH} #{bindfs_args} #{extra_args} #{Shellwords.escape(srcdir)} #{Shellwords.escape(mntdir)}" if options[:valgrind] cmd = "valgrind --error-exitcode=100 #{options[:valgrind_opts]} #{cmd}" end -- cgit v1.2.3