Fix: CAPTURE not variadic when disabled (#2378)

Closes: #2316
This commit is contained in:
John Beard
2022-03-04 15:29:22 +01:00
committed by GitHub
parent 958944d27a
commit ff151d2833
3 changed files with 6 additions and 1 deletions
@@ -53,6 +53,7 @@ CATCH_TEST_CASE("PrefixedMacros") {
CATCH_SECTION("some section") {
int i = 1;
CATCH_CAPTURE( i );
CATCH_CAPTURE( i, i + 1 );
CATCH_DYNAMIC_SECTION("Dynamic section: " << i) {
CATCH_FAIL_CHECK( "failure" );
}