Skip to content

Commit 160f0d7

Browse files
committed
Add the IMMER_GC_TEST_GUARD to more tests
They are pseudo-deterministically flaky? Depends on when GC gets triggered... Seems mostly deterministic for a single buidl, but the points change whenever you really change the code in any way.
1 parent 1774584 commit 160f0d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/map/generic.ipp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ TEST_CASE("accumulate")
265265

266266
TEST_CASE("update a lot")
267267
{
268+
IMMER_GC_TEST_GUARD;
268269
auto v = make_test_map(666u);
269270

270271
SECTION("immutable")
@@ -293,6 +294,7 @@ TEST_CASE("update a lot")
293294

294295
TEST_CASE("update_if_exists a lot")
295296
{
297+
IMMER_GC_TEST_GUARD;
296298
auto v = make_test_map(666u);
297299

298300
SECTION("immutable")
@@ -314,6 +316,7 @@ TEST_CASE("update_if_exists a lot")
314316

315317
TEST_CASE("update boxed move string")
316318
{
319+
IMMER_GC_TEST_GUARD;
317320
constexpr auto N = 666u;
318321
constexpr auto S = 7;
319322
auto s = MAP_T<std::string, immer::box<std::string, memory_policy_t>>{};

0 commit comments

Comments
 (0)