From 4be6d445c4bc59dbbb3513a1ae993cfcb91c2aef Mon Sep 17 00:00:00 2001 From: ihsan demir Date: Tue, 29 Mar 2016 17:19:57 +0300 Subject: [PATCH] Added some logs --- .../test/src/countdownlatch/ICountDownLatchTest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hazelcast/test/src/countdownlatch/ICountDownLatchTest.cpp b/hazelcast/test/src/countdownlatch/ICountDownLatchTest.cpp index a1fba87ebb..e4764ad7db 100644 --- a/hazelcast/test/src/countdownlatch/ICountDownLatchTest.cpp +++ b/hazelcast/test/src/countdownlatch/ICountDownLatchTest.cpp @@ -35,8 +35,14 @@ namespace hazelcast { void testLatchThread(util::ThreadArgs &args) { ICountDownLatch *l = (ICountDownLatch *) args.arg0; + util::ILogger &logger = util::ILogger::getLogger(); for (int i = 0; i < 20; i++) { + char msg[200]; + util::snprintf(msg, 200, "[testLatchThread] Before decrementing the latch. i:%d", i); + logger.info(msg); l->countDown(); + util::snprintf(msg, 200, "[testLatchThread] After decrementing the latch. i:%d", i); + logger.info(msg); } } @@ -47,7 +53,10 @@ namespace hazelcast { util::Thread t(testLatchThread, l.get()); + util::ILogger &logger = util::ILogger::getLogger(); + logger.info("[testLatch] Starting to wait the latch for 10 seconds"); ASSERT_TRUE(l->await(10 * 1000)); + logger.info("[testLatch] After latch await call"); } }