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

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/TestMain.cpp
diff options
context:
space:
mode:
authorPhil Nash2013-07-24 19:13:08 +0100
committerPhil Nash2013-07-24 19:13:08 +0100
commit9aff9aa3284c742abfecacb2e890a1cdfe156701 (patch)
tree104846fc08294cac3be4f689ae643e5cea24fa82 /projects/SelfTest/TestMain.cpp
parent6a484fdb028fec77e54c657dfe08a5007ecca91e (diff)
downloadcatch3-9aff9aa3284c742abfecacb2e890a1cdfe156701.tar.gz
Integrated new section tracker.
- also pass extra section to reporter - one for each test case - ignore it in headers (this is so we know a test case has restarted) - significant effect on regression test due to change of ordering of sections - fixes infinite loop issue
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
-rw-r--r--projects/SelfTest/TestMain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp
index 00052465..51bc5e95 100644
--- a/projects/SelfTest/TestMain.cpp
+++ b/projects/SelfTest/TestMain.cpp
@@ -38,15 +38,15 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
SECTION( "selftest/test counts/succeeding tests",
"Number of 'succeeding' tests is fixed" ) {
Totals totals = runner.runMatching( "./succeeding/*", 0, 2 );
- CHECK( totals.assertions.passed == 296 );
+ CHECK( totals.assertions.passed == 298 );
CHECK( totals.assertions.failed == 0 );
}
SECTION( "selftest/test counts/failing tests",
"Number of 'failing' tests is fixed" ) {
Totals totals = runner.runMatching( "./failing/*", 1, 2 );
- CHECK( totals.assertions.passed == 1 );
- CHECK( totals.assertions.failed == 74 );
+ CHECK( totals.assertions.passed == 2 );
+ CHECK( totals.assertions.failed == 77 );
}
}
}