aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_concurrent.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_concurrent.rb')
-rwxr-xr-xtests/test_concurrent.rb5
1 files changed, 4 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
#
-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