Skip to content

Commit 09e481a

Browse files
zygzagZrafaelfranca
authored andcommitted
Fix exit code test for unix platform
UNIX adds 128 to signal codes.
1 parent 99fbc69 commit 09e481a

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

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

0 commit comments

Comments
 (0)