summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-27 15:33:56 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-27 15:33:56 +0000
commitf39ed9dcded1d37a2c9a43b2b29feed5228ea012 (patch)
tree1243e050929186ebb8c9dd39aa83a4940746934d /test/ruby/test_process.rb
parentbed02ef5312ec5f5aadaddda7889c4c53662b1b6 (diff)
merge revision(s) 32707:
* test/fileutils/test_fileutils.rb: add OpenBSD case. patched by Jeremy Evans [ruby-core:38530] see #5097 * test/ruby/test_process.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r--test/ruby/test_process.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index aad043874e..ba3aeb9825 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1191,8 +1191,10 @@ class TestProcess < Test::Unit::TestCase
end
def test_wait_and_sigchild
- if /freebsd/ =~ RUBY_PLATFORM
- skip "this randomly fails on FreeBSD"
+ if /freebsd|openbsd/ =~ RUBY_PLATFORM
+ # this relates #4173
+ # When ruby can use 2 cores, signal and wait4 may miss the signal.
+ skip "this fails on FreeBSD and OpenBSD on multithreaded environment"
end
signal_received = []
Signal.trap(:CHLD) { signal_received << true }