aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests/common.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/common.rb b/tests/common.rb
index 2563b38..c99016b 100755
--- a/tests/common.rb
+++ b/tests/common.rb
@@ -109,7 +109,7 @@ def testenv(bindfs_args, options = {}, &block)
begin
cmd = "../#{EXECUTABLE_PATH} #{bindfs_args} -f src mnt"
if options[:valgrind]
- cmd = "valgrind #{options[:valgrind_opts]} #{cmd}"
+ cmd = "valgrind --error-exitcode=100 #{options[:valgrind_opts]} #{cmd}"
end
bindfs_pid = Process.fork do
exec cmd
@@ -145,6 +145,11 @@ def testenv(bindfs_args, options = {}, &block)
fail("ERROR: failed to umount")
testcase_ok = false
end
+
+ if !$?.success?
+ fail("exit status: #{$?}")
+ testcase_ok = false
+ end
begin
Dir.chdir '..'