Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/ExtraTests
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-02-13 21:30:26 +0100
committerMartin Hořeňovský2026-02-13 21:30:26 +0100
commitb6c7b217d4bcb5030ce1e04180f35d02bcf5d93f (patch)
treef08006f081de94b24fc875421adb6ecfa6efede0 /tests/ExtraTests
parent045ac7acce5205e529a7a6fda155cadc3dfe68e7 (diff)
downloadcatch3-b6c7b217d4bcb5030ce1e04180f35d02bcf5d93f.tar.gz
Improve test for --warn InfiniteGenerators
Diffstat (limited to 'tests/ExtraTests')
-rw-r--r--tests/ExtraTests/CMakeLists.txt3
-rw-r--r--tests/ExtraTests/X95-InfiniteGenerators.cpp4
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt
index d663efc8..def88be5 100644
--- a/tests/ExtraTests/CMakeLists.txt
+++ b/tests/ExtraTests/CMakeLists.txt
@@ -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
)
diff --git a/tests/ExtraTests/X95-InfiniteGenerators.cpp b/tests/ExtraTests/X95-InfiniteGenerators.cpp
index 31389107..d169758f 100644
--- a/tests/ExtraTests/X95-InfiniteGenerators.cpp
+++ b/tests/ExtraTests/X95-InfiniteGenerators.cpp
@@ -34,3 +34,7 @@ namespace {
TEST_CASE() {
auto _ = GENERATE( make_infinite_generator() );
}
+
+TEST_CASE() {
+ REQUIRE(true);
+}