ruby-changes:53572
From: k0kubun <ko1@a...>
Date: Sun, 18 Nov 2018 18:22:54 +0900 (JST)
Subject: [ruby-changes:53572] k0kubun:r65788 (trunk): test_jit.rb: loosen output check
k0kubun 2018-11-18 18:22:48 +0900 (Sun, 18 Nov 2018) New Revision: 65788 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65788 Log: test_jit.rb: loosen output check for interleaving between processes https://gist.github.com/ko1/ace0374825377b41628d4590b7377601 Modified files: trunk/test/ruby/test_jit.rb Index: test/ruby/test_jit.rb =================================================================== --- test/ruby/test_jit.rb (revision 65787) +++ test/ruby/test_jit.rb (revision 65788) @@ -867,8 +867,7 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L867 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/