From 8437e3fc441ba5e38c57c571ba477237a72ea66d Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 12 Mar 2017 01:03:55 +0000 Subject: Hacked tests to work with Ruby 1.8.7 and FUSE 2.8 again. The test suite now passes under Ubuntu 12.04 and CentOS 6. Fixes #49 --- tests/test_concurrent.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/test_concurrent.rb') diff --git a/tests/test_concurrent.rb b/tests/test_concurrent.rb index f981332..a966139 100755 --- a/tests/test_concurrent.rb +++ b/tests/test_concurrent.rb @@ -17,7 +17,10 @@ # You should have received a copy of the GNU General Public License # along with bindfs. If not, see . # -require './common.rb' + +# if we are being run by make check it will set srcdir and we should use it +$LOAD_PATH << (ENV['srcdir'] || '.') +require 'common.rb' raise "Please run this as root" unless Process.uid == 0 -- cgit v1.2.3