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

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/TestMain.cpp
diff options
context:
space:
mode:
authorPhil Nash2012-02-15 08:20:06 +0000
committerPhil Nash2012-02-15 08:20:06 +0000
commit7b449f7abe1e398ce28441293b609fd891c8df2f (patch)
treea0631a780c740f83b1f8e200877288134aa0cc64 /projects/SelfTest/TestMain.cpp
parent8d241438279e21f2c61ba61d705f05e9499904aa (diff)
downloadcatch3-7b449f7abe1e398ce28441293b609fd891c8df2f.tar.gz
Ability to register line# for testing
Factored file/ line storage and formatting into common class. Used in a static registry so failure messages can be asserted to have the file/ line in.
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
-rw-r--r--projects/SelfTest/TestMain.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp
index 868f0f60..3b4c7859 100644
--- a/projects/SelfTest/TestMain.cpp
+++ b/projects/SelfTest/TestMain.cpp
@@ -10,10 +10,6 @@
*
*/
-#define CATCH_CONFIG_MAIN
-#include "catch.hpp"
-
-
#include "catch_self_test.hpp"
TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results" )
@@ -47,7 +43,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
"Number of 'succeeding' tests is fixed" )
{
runner.runMatching( "./succeeding/*" );
- CHECK( runner.getSuccessCount() == 262 );
+ CHECK( runner.getSuccessCount() == 267 );
CHECK( runner.getFailureCount() == 0 );
}