ruby-changes:61939
From: Yusuke <ko1@a...>
Date: Fri, 26 Jun 2020 14:16:48 +0900 (JST)
Subject: [ruby-changes:61939] a640bcee04 (master): test/ruby/test_settracefunc.rb: Suppress a warning
https://git.ruby-lang.org/ruby.git/commit/?id=a640bcee04 From a640bcee048a25730d259e6e95568111d70443f1 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Fri, 26 Jun 2020 14:15:01 +0900 Subject: test/ruby/test_settracefunc.rb: Suppress a warning http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20200626T033003Z.log.html.gz ``` /home/chkbuild/chkbuild/tmp/build/20200626T033003Z/ruby/test/ruby/test_settracefunc.rb:2299: warning: ambiguous first argument; put parentheses or a space even after `/' operator ``` diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 3106bea..3aaa34f 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -2296,7 +2296,7 @@ class TestSetTraceFunc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L2296 def test_tracepoint_opt_invokebuiltin_delegate_leave code = 'puts RubyVM::InstructionSequence.of("\x00".method(:unpack)).disasm' out = EnvUtil.invoke_ruby(['-e', code], '', true).first - assert_match /^0000 opt_invokebuiltin_delegate_leave /, out + assert_match(/^0000 opt_invokebuiltin_delegate_leave /, out) event = eval(EnvUtil.invoke_ruby(['-e', <<~'EOS'], '', true).first) TracePoint.new(:return) do |tp| -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/