[前][次][番号順一覧][スレッド一覧]

ruby-changes:69436

From: Yusuke <ko1@a...>
Date: Mon, 25 Oct 2021 21:30:44 +0900 (JST)
Subject: [ruby-changes:69436] 5bcef26d24 (master): test/ruby/test_jit.rb: Print a hint at exit of the original process

https://git.ruby-lang.org/ruby.git/commit/?id=5bcef26d24

From 5bcef26d24fdd5756d2678aca03190d03a82ad9a Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
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(-)

diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 60e128b3d9c..b1bef2a7b79 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -53,8 +53,9 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L53
 
     # 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.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]