diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-28 09:22:07 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-28 09:22:07 +0000 |
commit | d025f64a9f61683453a16a69a6dc65be321c657f (patch) | |
tree | 34f691f30564001d3fea31540a00e8dfe91f1365 /test/lib/jit_support.rb | |
parent | 6090206275c28975a0f2405c8cf6b281a33337f3 (diff) | |
download | ruby-d025f64a9f61683453a16a69a6dc65be321c657f.tar.gz |
test_open3.rb: let test_popen2 work with --jit
test/lib/jit_support.rb: add .remove_mjit_logs to normalize stderr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/jit_support.rb')
-rw-r--r-- | test/lib/jit_support.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index 3b0d21094d..d00625278f 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -33,4 +33,12 @@ module JITSupport err.match?(JIT_SUCCESS_PREFIX) end end + + def remove_mjit_logs(stderr) + if RubyVM::MJIT.enabled? + stderr.gsub(/^MJIT warning: Skipped to compile unsupported instruction: \w+\n/m, '') + else + stderr + end + end end |