ruby-changes:61920
From: Takashi <ko1@a...>
Date: Wed, 24 Jun 2020 16:30:57 +0900 (JST)
Subject: [ruby-changes:61920] 50c63ab38d (master): Fix a random test failure by TracePoint
https://git.ruby-lang.org/ruby.git/commit/?id=50c63ab38d From 50c63ab38da95d17687d9fe9a74eb6ad79973f64 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Wed, 24 Jun 2020 00:29:53 -0700 Subject: Fix a random test failure by TracePoint A test worker process may already be enabling TracePoint, which results in changing the insn name in this test. http://ci.rvm.jp/results/trunk-random0@phosphorus-docker/3022750 diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 960b7b7..1e7dbe0 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -566,8 +566,10 @@ class TestISeq < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_iseq.rb#L566 end def test_iseq_builtin_to_a - insns = RubyVM::InstructionSequence.of([].method(:pack)).to_a.last - invokebuiltin = insns.find { |insn| insn.is_a?(Array) && insn[0] == :opt_invokebuiltin_delegate_leave } + invokebuiltin = eval(EnvUtil.invoke_ruby(['-e', <<~EOS], '', true).first) + insns = RubyVM::InstructionSequence.of([].method(:pack)).to_a.last + p insns.find { |insn| insn.is_a?(Array) && insn[0] == :opt_invokebuiltin_delegate_leave } + EOS assert_not_nil(invokebuiltin) assert_equal([:func_ptr, :argc, :index, :name], invokebuiltin[1].keys) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/