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

summaryrefslogtreecommitdiffhomepage
path: root/Test/TestMain.cpp
diff options
context:
space:
mode:
authorPhil Nash2010-11-29 19:48:37 +0000
committerPhil Nash2010-11-29 19:48:37 +0000
commitceab2a63bde9cfc28a75bfcbe8a4515ae050cba2 (patch)
tree088a95c18008ec61120b13bb7e26302717f81a86 /Test/TestMain.cpp
parente6b2b0e656d52f95a9fd292199f9eefb59eae585 (diff)
parent5f43a43662c8b9feca25aeccc79d1c7db664c9a0 (diff)
downloadcatch3-ceab2a63bde9cfc28a75bfcbe8a4515ae050cba2.tar.gz
merge
Diffstat (limited to 'Test/TestMain.cpp')
-rw-r--r--Test/TestMain.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/Test/TestMain.cpp b/Test/TestMain.cpp
index 0fc13551..b2bf7f84 100644
--- a/Test/TestMain.cpp
+++ b/Test/TestMain.cpp
@@ -61,7 +61,17 @@ int main (int argc, char * const argv[])
if( result == 0 )
{
- std::cout << "All " << runner.getSuccessCount() + runner.getFailureCount() << " tests completed successfully" << std::endl;
+ const size_t expectedTestCaseCount = 99; // !TBD factor this out
+ size_t testCaseCount = runner.getSuccessCount() + runner.getFailureCount();
+ std::cout << "All " << testCaseCount << " tests completed successfully" << std::endl;
+ if( testCaseCount != expectedTestCaseCount )
+ {
+ std::cerr << "- but we were expecting " << expectedTestCaseCount
+ << " test to run. Where some added or removed, or were they not compiled in?"
+ << std::endl;
+ return 1;
+ }
+
}
return result;
}