Skip to content

Commit 792a62e

Browse files
zygzagZrafaelfranca
authored andcommitted
Fix exit code test for unix platform
UNIX adds 128 to signal codes.
1 parent 43ed7f6 commit 792a62e

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
@@ -753,7 +753,7 @@ class MyEngine < Rails::Engine
753753

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

0 commit comments

Comments
 (0)