aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-02 16:20:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-02 16:20:43 +0900
commitad4eab1a8ccacf7dc79a73407978a5591062f057 (patch)
treea4a7076a3a0fd507042b8c8476fa1ac29628b0d8 /test
parent4fa47eabf21f3a13bb614cf8a63708f05decb710 (diff)
downloadruby-ad4eab1a8ccacf7dc79a73407978a5591062f057.tar.gz
Wait killed thread
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_thread.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 8ca23e7d02..85fbde2de8 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -1263,6 +1263,7 @@ q.pop
assert_predicate(status, :success?, bug18902)
ensure
th.kill
+ th.join
end
end if Process.respond_to?(:fork)