1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
```
This commit is contained in:
Yusuke Endoh 2021-10-25 21:28:44 +09:00
parent 9d28618091
commit 5bcef26d24

View file

@ -53,8 +53,9 @@ class TestJIT < Test::Unit::TestCase
# ruby -w -Itest/lib test/ruby/test_jit.rb # ruby -w -Itest/lib test/ruby/test_jit.rb
if $VERBOSE if $VERBOSE
pid = $$
at_exit do 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(' ')}" warn "you may want to add tests for following insns, when you have a chance: #{TestJIT.untested_insns.join(' ')}"
end end
end end