mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 02:45:40 +02:00
Integrated new section tracker.
- also pass extra section to reporter - one for each test case - ignore it in headers (this is so we know a test case has restarted) - significant effect on regression test due to change of ordering of sections - fixes infinite loop issue
This commit is contained in:
@@ -333,11 +333,11 @@ TEST_CASE( "vectors can be sized and resized", "[vector]" ) {
|
||||
}
|
||||
|
||||
// https://github.com/philsquared/Catch/issues/166
|
||||
//TEST_CASE("CatchSectionInfiniteLoop", "")
|
||||
//{
|
||||
// SECTION("Outer", "")
|
||||
// SECTION("Inner", "")
|
||||
// SUCCEED("that's not flying - that's failing in style");
|
||||
//
|
||||
// FAIL("to infinity and beyond");
|
||||
//}
|
||||
TEST_CASE("./failing/CatchSectionInfiniteLoop", "")
|
||||
{
|
||||
SECTION("Outer", "")
|
||||
SECTION("Inner", "")
|
||||
SUCCEED("that's not flying - that's failing in style");
|
||||
|
||||
FAIL("to infinity and beyond");
|
||||
}
|
||||
|
Reference in New Issue
Block a user