提交 75beeaf7 编写于 作者: L liaogang

Fix unit test stack trace bug on MAC OS

上级 a6b58cf0
...@@ -45,6 +45,7 @@ void testNormalImpl(const std::function<void( ...@@ -45,6 +45,7 @@ void testNormalImpl(const std::function<void(
size_t cntDown = countDown; size_t cntDown = countDown;
while (cntDown-- > 0) { while (cntDown-- > 0) {
startBarrier.wait(); startBarrier.wait();
sleep(1);
doneBarrier.wait(); doneBarrier.wait();
ASSERT_TRUE(tracer.empty()); ASSERT_TRUE(tracer.empty());
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册