summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-18 09:22:48 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-18 09:22:48 +0000
commitfcd8412dcc8c86bf4f987217fada6e9f6d730196 (patch)
tree767bd63949f610ffeecde52bd6d98c2abdb88188
parent9b850d1a9a5069e16b0cd28d4bda3c2785445848 (diff)
test_jit.rb: loosen output check
for interleaving between processes https://gist.github.com/ko1/ace0374825377b41628d4590b7377601 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_jit.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 3abbcba..6aee86b 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -867,8 +867,7 @@ class TestJIT < Test::Unit::TestCase
debug_info = "stdout:\n```\n#{out}\n```\n\nstderr:\n```\n#{err}```\n"
# assert no remove error
- assert_match(/^Successful MJIT finish$/, lines[3], debug_info)
- assert_match(/^Successful MJIT finish$/, lines[4], debug_info)
+ assert_equal("Successful MJIT finish\n" * 2, err.gsub(/^#{JIT_SUCCESS_PREFIX}:[^\n]+\n/, ''), debug_info)
# ensure objects are deleted
assert_send([Dir, :empty?, dir], debug_info)