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

summaryrefslogtreecommitdiffhomepage
path: root/tests/TestScripts/testConfigureDisable.py
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-06-09 20:48:58 +0200
committerMartin Hořeňovský2021-08-07 15:16:11 +0200
commit0a3f511cfed071c9c4ad512341ae7569383922b7 (patch)
tree9bb28fd5a87cd1fffc96832fafeb244c6bef29a7 /tests/TestScripts/testConfigureDisable.py
parent9ef510b7694c7199a78d13a8cba8ddbdeac7cb16 (diff)
downloadcatch3-0a3f511cfed071c9c4ad512341ae7569383922b7.tar.gz
Fix inconsistencies in reporting benchmarking failures
With these changes, all these benchmarks ```cpp BENCHMARK("Empty benchmark") {}; BENCHMARK("Throwing benchmark") { throw "just a plain literal, bleh"; }; BENCHMARK("Asserting benchmark") { REQUIRE(1 == 2); }; BENCHMARK("FAIL'd benchmark") { FAIL("This benchmark only fails, nothing else"); }; ``` report the respective failure and mark the outer `TEST_CASE` as failed. Previously, the first two would not fail the `TEST_CASE`, and the latter two would break xml reporter's formatting, because `benchmarkFailed`, `benchmarkEnded` etc would not be be called properly in failure cases.
Diffstat (limited to 'tests/TestScripts/testConfigureDisable.py')
0 files changed, 0 insertions, 0 deletions