Skip to content

Commit 5e4acac

Browse files
Restore skipping
1 parent 3ef190d commit 5e4acac

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

libcxx/test/std/algorithms/alg.sorting/alg.merge/inplace_merge.pass.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,13 @@ TEST_CONSTEXPR_CXX26 void test(RandSrc& randomness) {
9696
test_one<Iter>(3, 2, randomness);
9797
test_one<Iter>(3, 3, randomness);
9898
test<Iter>(4, randomness);
99-
test<Iter>(100, randomness);
99+
test<Iter>(50, randomness);
100+
#if defined(_LIBCPP_HARDENING_MODE)
101+
if (!TEST_IS_CONSTANT_EVALUATED) // avoid exceeding the constant evaluation step limit
102+
#endif
103+
{
104+
test<Iter>(100, randomness);
105+
}
100106
if (!TEST_IS_CONSTANT_EVALUATED) { // avoid exceeding the constant evaluation step limit
101107
test<Iter>(1000, randomness);
102108
}

0 commit comments

Comments
 (0)