From ae2e5c99936afa58844534d662cae716ca19d87d Mon Sep 17 00:00:00 2001 From: ihsan demir Date: Mon, 4 Apr 2016 14:36:21 +0300 Subject: [PATCH] Added the thread join for the latch test so that the countdown finishes gracefully without thread cancellation. --- hazelcast/test/src/countdownlatch/ICountDownLatchTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hazelcast/test/src/countdownlatch/ICountDownLatchTest.cpp b/hazelcast/test/src/countdownlatch/ICountDownLatchTest.cpp index a1fba87ebb..154926d3cc 100644 --- a/hazelcast/test/src/countdownlatch/ICountDownLatchTest.cpp +++ b/hazelcast/test/src/countdownlatch/ICountDownLatchTest.cpp @@ -48,6 +48,8 @@ namespace hazelcast { util::Thread t(testLatchThread, l.get()); ASSERT_TRUE(l->await(10 * 1000)); + + t.join(); } }