diff options
| author | Martin Hořeňovský | 2021-08-21 00:06:31 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-08-21 00:06:31 +0200 |
| commit | 1cbbc5d2cbac7f497fa5e2128f6779ee2e5fb510 (patch) | |
| tree | 80e0013f75d9526e1d173f50a87681a2d1ba067d /tests/SelfTest/IntrospectiveTests | |
| parent | 7f3297f7e81c4d96329f56e13e56cb18c58522d3 (diff) | |
| download | catch3-1cbbc5d2cbac7f497fa5e2128f6779ee2e5fb510.tar.gz | |
Add test for !shouldfail and failed benchmarks
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests')
| -rw-r--r-- | tests/SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp | 5 |
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 ); }; +} |