summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-23 02:23:21 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-23 02:23:21 +0000
commit3b6f862b3af128f1a17a88837b64390cb7a9be7a (patch)
treebd07f668fe94e0ba413a6cfc1fd83571719694ab /bootstraptest/test_knownbug.rb
parent105a66963140e7b3e8056c67c4e4e61b1d5a60d0 (diff)
* bootstraptest/test_{knownbug,thread}.rb: support fork-less platform.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index acb62152dd..9b688fca00 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -68,11 +68,15 @@ assert_equal 'ok', %q{
assert_equal 'true', %{
t = Thread.new { loop {} }
- pid = fork {
+ begin
+ pid = fork {
exit t.status != "run"
- }
- Process.wait pid
- $?.success?
+ }
+ Process.wait pid
+ $?.success?
+ rescue NotImplementedError
+ true
+ end
}
assert_valid_syntax('1.times {|i|print (42),1;}', '[ruby-list:44479]')