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

ruby-changes:49230

From: ngoto <ko1@a...>
Date: Wed, 20 Dec 2017 02:09:20 +0900 (JST)
Subject: [ruby-changes:49230] ngoto:r61345 (trunk): skip test_aspawn_too_long_path on Solaris 10 or earlier

ngoto	2017-12-20 02:09:13 +0900 (Wed, 20 Dec 2017)

  New Revision: 61345

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

  Log:
    skip test_aspawn_too_long_path on Solaris 10 or earlier
    
    * test/ruby/test_process.rb (TestProcess#test_aspawn_too_long_path):
      skip test_aspawn_too_long_path on Solaris 10 or earlier versions
      because they lack Process::RLIMIT_NPROC and the test creates
      extraordinary number of processes that makes the system unstable.

  Modified files:
    trunk/test/ruby/test_process.rb
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 61344)
+++ test/ruby/test_process.rb	(revision 61345)
@@ -1641,6 +1641,9 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1641
   end
 
   def test_aspawn_too_long_path
+    if /solaris/i =~ RUBY_PLATFORM && !defined?(Process::RLIMIT_NPROC)
+      skip "Too exhaustive test on platforms without Process::RLIMIT_NPROC such as Solaris 10"
+    end
     bug4315 = '[ruby-core:34833] #7904 [ruby-core:52628] #11613'
     assert_fail_too_long_path(%w"echo |", bug4315)
   end

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

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