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

ruby-changes:55840

From: Yusuke <ko1@a...>
Date: Sun, 26 May 2019 09:49:54 +0900 (JST)
Subject: [ruby-changes:55840] Yusuke Endoh: a516834b47 (trunk): test/ruby/test_rubyoptions.rb (test_script_from_stdin): scale timeout

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

From a516834b47de810b53241c66f677fafd4485bebd Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sun, 26 May 2019 09:48:38 +0900
Subject: test/ruby/test_rubyoptions.rb (test_script_from_stdin): scale timeout

for Solaris.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190525T131909Z.fail.html.gz

diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 0956d6e..7dcae0c 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -790,8 +790,9 @@ class TestRubyOptions < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L790
           m.print("\C-d")
           pid = spawn(EnvUtil.rubybin, :in => s, :out => w)
           w.close
+          timeout = EnvUtil.apply_timeout_scale(3)
           assert_nothing_raised('[ruby-dev:37798]') do
-            result = Timeout.timeout(3) {r.read}
+            result = Timeout.timeout(timeout) {r.read}
           end
           Process.wait pid
         }
-- 
cgit v0.10.2


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

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