From b37fc5aa7e3ec121380f1db658498ea879c7c3b7 Mon Sep 17 00:00:00 2001 From: ngoto Date: Tue, 19 Dec 2017 17:09:13 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index c20b8170aa..ba46e94570 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1641,6 +1641,9 @@ class TestProcess < Test::Unit::TestCase 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