Skip to content

Commit 2dc1b54

Browse files
committed
Fix exit code test for unix platform
UNIX adds 128 to signal codes.
1 parent 05b1675 commit 2dc1b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/support/acceptance_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ class MyEngine < Rails::Engine
748748

749749
artifacts = app.run("bin/rails runner 'system(\"kill -7 \#{Process.pid}\")'")
750750
code = artifacts[:status].exitstatus || artifacts[:status].termsig
751-
assert_equal 7, code, "Expected exit status to be 7, but was #{code}"
751+
assert_equal 7, code % 128, "Expected exit status to be 7, but was #{code}"
752752
end
753753
end
754754
end

0 commit comments

Comments
 (0)