summaryrefslogtreecommitdiff
path: root/test/-ext-
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-03 09:32:32 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-03 09:32:32 +0900
commit8b02de8f41296d1a2449ecaeb24726f088ce899c (patch)
treee624bf1030bf783a42c139adb25d7417bea6992b /test/-ext-
parentac8ec004e5272d589caca30616dbe12862150188 (diff)
Fix thread leakage
Wait for the worker thread to finish.
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/debug/test_profile_frames.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/-ext-/debug/test_profile_frames.rb b/test/-ext-/debug/test_profile_frames.rb
index e66413c228..b44b14d851 100644
--- a/test/-ext-/debug/test_profile_frames.rb
+++ b/test/-ext-/debug/test_profile_frames.rb
@@ -182,7 +182,9 @@ class TestProfileFrames < Test::Unit::TestCase
assert_equal(full_labels[i], frame)
end
+ ensure
th.kill
+ th.join
end