[前][次][番号順一覧][スレッド一覧]

ruby-changes:56253

From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Jun 2019 15:10:18 +0900 (JST)
Subject: [ruby-changes:56253] Nobuyoshi Nakada: c52dad0ecf (trunk): Wait for the helper thread to terminate

https://git.ruby-lang.org/ruby.git/commit/?id=c52dad0ecf

From c52dad0ecf0b8d87afb570d7dde508fe78d145d4 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 28 Jun 2019 14:51:23 +0900
Subject: Wait for the helper thread to terminate


diff --git a/test/monitor/test_monitor.rb b/test/monitor/test_monitor.rb
index 8854b59..9d07bf7 100644
--- a/test/monitor/test_monitor.rb
+++ b/test/monitor/test_monitor.rb
@@ -172,6 +172,8 @@ class TestMonitor < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/monitor/test_monitor.rb#L172
       assert @monitor.mon_locked?
       assert @monitor.mon_owned?
     end
+  ensure
+    th.join
   end
 
   def test_cond
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]