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

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/IntrospectiveTests
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-08-21 00:06:31 +0200
committerMartin Hořeňovský2021-08-21 00:06:31 +0200
commit1cbbc5d2cbac7f497fa5e2128f6779ee2e5fb510 (patch)
tree80e0013f75d9526e1d173f50a87681a2d1ba067d /tests/SelfTest/IntrospectiveTests
parent7f3297f7e81c4d96329f56e13e56cb18c58522d3 (diff)
downloadcatch3-1cbbc5d2cbac7f497fa5e2128f6779ee2e5fb510.tar.gz
Add test for !shouldfail and failed benchmarks
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests')
-rw-r--r--tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp b/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp
index b2250415..19fa8f95 100644
--- a/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp
+++ b/tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp
@@ -433,3 +433,8 @@ TEST_CASE("Failing benchmarks", "[!benchmark][.approvals]") {
};
}
}
+
+TEST_CASE( "Failing benchmark respects should-fail",
+ "[!shouldfail][!benchmark][.approvals]" ) {
+ BENCHMARK( "Asserting benchmark" ) { REQUIRE( 1 == 2 ); };
+}