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

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/UsageTests/Tricky.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2025-10-14 22:14:47 +0200
committerMartin Hořeňovský2025-10-16 09:16:56 +0200
commit49d79e9e9c40e644304945dd5a8e4e78d0c61d10 (patch)
treeab0ed18db89b464e8e36f4964cd91af2bd6b4135 /tests/SelfTest/UsageTests/Tricky.tests.cpp
parent33e6fd217aee285eca97bef175df716264088b8a (diff)
downloadcatch3-49d79e9e9c40e644304945dd5a8e4e78d0c61d10.tar.gz
Fix section filtering to make sense
Specifically, this commit makes the `-c`/`--section` parameter strictly ordered and hierarchical, unlike how it behaved before, which was a huge mess -- see #3038 for details. Closes #3038
Diffstat (limited to 'tests/SelfTest/UsageTests/Tricky.tests.cpp')
-rw-r--r--tests/SelfTest/UsageTests/Tricky.tests.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/SelfTest/UsageTests/Tricky.tests.cpp b/tests/SelfTest/UsageTests/Tricky.tests.cpp
index 041d7867..fe93e8cf 100644
--- a/tests/SelfTest/UsageTests/Tricky.tests.cpp
+++ b/tests/SelfTest/UsageTests/Tricky.tests.cpp
@@ -354,27 +354,9 @@ TEST_CASE("#1514: stderr/stdout is not captured in tests aborted by an exception
FAIL("1514");
}
-
-TEST_CASE( "#2025: -c shouldn't cause infinite loop", "[sections][generators][regression][.approvals]" ) {
- SECTION( "Check cursor from buffer offset" ) {
- auto bufPos = GENERATE_REF( range( 0, 44 ) );
- WHEN( "Buffer position is " << bufPos ) { REQUIRE( 1 == 1 ); }
- }
-}
-
TEST_CASE("#2025: original repro", "[sections][generators][regression][.approvals]") {
auto fov = GENERATE(true, false);
DYNAMIC_SECTION("fov_" << fov) {
std::cout << "inside with fov: " << fov << '\n';
}
}
-
-TEST_CASE("#2025: same-level sections", "[sections][generators][regression][.approvals]") {
- SECTION("A") {
- SUCCEED();
- }
- auto i = GENERATE(1, 2, 3);
- SECTION("B") {
- REQUIRE(i < 4);
- }
-}