From 5bcef26d24fdd5756d2678aca03190d03a82ad9a Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Mon, 25 Oct 2021 21:28:44 +0900 Subject: 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 ``` --- test/ruby/test_jit.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3