ruby-changes:54414
From: k0kubun <ko1@a...>
Date: Sat, 29 Dec 2018 15:48:39 +0900 (JST)
Subject: [ruby-changes:54414] k0kubun:r66629 (trunk): test_jit.rb: prevent mixing outputs by race condition
k0kubun 2018-12-29 15:48:34 +0900 (Sat, 29 Dec 2018) New Revision: 66629 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66629 Log: test_jit.rb: prevent mixing outputs by race condition to avoid random failures like https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20181229T032506Z.fail.html.gz Modified files: trunk/test/ruby/test_jit.rb Index: test/ruby/test_jit.rb =================================================================== --- test/ruby/test_jit.rb (revision 66628) +++ test/ruby/test_jit.rb (revision 66629) @@ -870,6 +870,7 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L870 before_fork; before_fork # the child should not delete this .o file pid = Process.fork do # this child should not delete shared .pch file + sleep 0.5 # to prevent mixing outputs on Solaris after_fork; after_fork # this child does not share JIT-ed after_fork with parent end after_fork; after_fork # this parent does not share JIT-ed after_fork with child -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/