diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-10-25 21:28:44 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-10-25 21:28:44 +0900 |
commit | 5bcef26d24fdd5756d2678aca03190d03a82ad9a (patch) | |
tree | cf420d44e5d96e9a1a4ac9a8c3a6151a5e874e27 /test/ruby/test_jit.rb | |
parent | 9d286180916e23bb2d9e6bf43cd75f439a1939ce (diff) |
test/ruby/test_jit.rb: Print a hint at exit of the original process
Otherwise, the hint is printed whenever fork is called.
http://rubyci.s3.amazonaws.com/debian9/ruby-master/log/20211025T093004Z.log.html.gz
```
[20244/21156] TestThread#test_fork_while_lockedyou may want to add tests for following insns, when you have a chance: checkmatch
you may want to add tests for following insns, when you have a chance: checkmatch
you may want to add tests for following insns, when you have a chance: checkmatch
= 0.19 s
```
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r-- | test/ruby/test_jit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 60e128b3d9..b1bef2a7b7 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -53,8 +53,9 @@ class TestJIT < Test::Unit::TestCase # ruby -w -Itest/lib test/ruby/test_jit.rb if $VERBOSE + pid = $$ at_exit do - unless TestJIT.untested_insns.empty? + if pid == $$ && !TestJIT.untested_insns.empty? warn "you may want to add tests for following insns, when you have a chance: #{TestJIT.untested_insns.join(' ')}" end end |