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

ruby-changes:53882

From: normal <ko1@a...>
Date: Fri, 30 Nov 2018 12:56:39 +0900 (JST)
Subject: [ruby-changes:53882] normal:r66101 (trunk): test/testunit/test_parallel.rb: respect subprocess timeout scale

normal	2018-11-30 12:56:34 +0900 (Fri, 30 Nov 2018)

  New Revision: 66101

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66101

  Log:
    test/testunit/test_parallel.rb: respect subprocess timeout scale
    
    MJIT tests take longer than 100s on my VM :<

  Modified files:
    trunk/test/testunit/test_parallel.rb
Index: test/testunit/test_parallel.rb
===================================================================
--- test/testunit/test_parallel.rb	(revision 66100)
+++ test/testunit/test_parallel.rb	(revision 66101)
@@ -5,7 +5,8 @@ require 'timeout' https://github.com/ruby/ruby/blob/trunk/test/testunit/test_parallel.rb#L5
 module TestParallel
   PARALLEL_RB = "#{File.dirname(__FILE__)}/../lib/test/unit/parallel.rb"
   TESTS = "#{File.dirname(__FILE__)}/tests_for_parallel"
-  TIMEOUT = RubyVM::MJIT.enabled? ? 100 : 10 # use large timeout for --jit-wait
+  # use large timeout for --jit-wait
+  TIMEOUT = EnvUtil.apply_timeout_scale(RubyVM::MJIT.enabled? ? 100 : 10)
 
   class TestParallelWorker < Test::Unit::TestCase
     def setup

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

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