Improve test for --warn InfiniteGenerators

This commit is contained in:
Martin Hořeňovský
2026-02-13 21:30:26 +01:00
parent 045ac7acce
commit b6c7b217d4
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -599,6 +599,7 @@ add_test(
)
set_tests_properties(Warnings::InfiniteGenerators
PROPERTIES
PASS_REGULAR_EXPRESSION "test cases: 1 \\| 1 failed"
# One test case fails with infinite generator, but the other one runs
PASS_REGULAR_EXPRESSION "test cases: 2 \\| 1 passed \\| 1 failed"
TIMEOUT 5
)
@@ -34,3 +34,7 @@ namespace {
TEST_CASE() {
auto _ = GENERATE( make_infinite_generator() );
}
TEST_CASE() {
REQUIRE(true);
}