summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstraptest/test_thread.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index e4636261676..5fd1d18e96a 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -420,10 +420,13 @@ assert_finish 3, %q{
end
end
- pid = fork do
- # Child
- STDOUT.write "This is the child process.\n"
- STDOUT.write "Child process exiting.\n"
+ begin
+ pid = fork do
+ # Child
+ STDOUT.write "This is the child process.\n"
+ STDOUT.write "Child process exiting.\n"
+ end
+ Process.waitpid(pid)
+ rescue NotImplementedError
end
- Process.waitpid(pid)
}, '[ruby-core:26361]'