summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstraptest/test_knownbug.rb12
-rw-r--r--bootstraptest/test_thread.rb12
2 files changed, 16 insertions, 8 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]')
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index 7810455c87..626d671440 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -202,9 +202,13 @@ end
}, '[ruby-dev:31371]'
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
}