Cherry picked 4f21bb72ff (Add tests for #961) from master

- had to redo the baselines
This commit is contained in:
Martin Hořeňovský
2017-08-10 21:38:07 +02:00
committed by Phil Nash
parent 0aec06f4c3
commit f06ed856d8
6 changed files with 160 additions and 9 deletions

View File

@@ -358,3 +358,11 @@ TEST_CASE( "#835 -- errno should not be touched by Catch", "[.][failing][!should
CHECK(f() == 0);
REQUIRE(errno == 1); // Check that f() doesn't touch errno.
}
TEST_CASE( "#961 -- Dynamically created sections should all be reported", "[.]" ) {
for (char i = '0'; i < '5'; ++i) {
SECTION(std::string("Looped section ") + i) {
SUCCEED( "Everything is OK" );
}
}
}