提交 d92c54d9 编写于 作者: I Ilya Isaev

Move REQUIRE back

Signed-off-by: NIlya Isaev <ilya.isaev@intel.com>
上级 427649d2
......@@ -235,8 +235,8 @@ TEST_CASE("only calls once - stress test") {
tbb::collaborative_once_flag flag;
utils::NativeParallelFor(N, [&](std::size_t) {
for (int i = 0; i < 100; ++i) {
REQUIRE(f.ct == i);
barrier.wait([&] {
REQUIRE(f.ct == i);
flag.~collaborative_once_flag();
new (&flag) tbb::collaborative_once_flag{};
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册