summaryrefslogtreecommitdiff
path: root/bootstraptest/test_thread.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_thread.rb')
-rw-r--r--bootstraptest/test_thread.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index e586ee274e..02cd2029aa 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -219,9 +219,13 @@ assert_equal 'true', %{
assert_equal 'ok', %{
open("zzz.rb", "w") do |f|
f.puts <<-END
- Thread.new { fork { GC.start } }.join
- pid, status = Process.wait2
- $result = status.success? ? :ok : :ng
+ begin
+ Thread.new { fork { GC.start } }.join
+ pid, status = Process.wait2
+ $result = status.success? ? :ok : :ng
+ rescue NotImplementedError
+ :ok
+ end
END
end
require "zzz.rb"