diff options
| author | Phil Nash | 2011-05-24 08:23:02 +0100 |
|---|---|---|
| committer | Phil Nash | 2011-05-24 08:23:02 +0100 |
| commit | 89d1e6c4f11f2917a6d1e0210816b9a0a763d4d9 (patch) | |
| tree | df68fed75f6de4a4912ccaa7e95a5543caf941fc /projects/SelfTest/TestMain.cpp | |
| parent | 4b24490e1a2218279d978d5e93ff09e0bd58d5f0 (diff) | |
| download | catch3-89d1e6c4f11f2917a6d1e0210816b9a0a763d4d9.tar.gz | |
Tweaks to allow headers to be glued together.
Added Python script to generate single header.
Added new XCode project that runs self test against single header
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
| -rw-r--r-- | projects/SelfTest/TestMain.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp index 969eba4d..1e99ebd0 100644 --- a/projects/SelfTest/TestMain.cpp +++ b/projects/SelfTest/TestMain.cpp @@ -10,14 +10,11 @@ * */ -//#include "../catch_with_main.hpp" -#include "internal/catch_self_test.hpp" +#define CATCH_CONFIG_MAIN +#include "catch.hpp" -#include "catch_runner.hpp" -int main (int argc, char * const argv[]) -{ - return Catch::Main( argc, argv ); -} + +#include "catch_self_test.hpp" TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results" ) { @@ -50,7 +47,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() == 223 ); + CHECK( runner.getSuccessCount() == 231 ); CHECK( runner.getFailureCount() == 0 ); } |