Permalink
Browse files

fix stats bug

fix that it counts all test case as pass.
  • Loading branch information...
1 parent e84c53f commit 849aff857ff2e8410388bf68b77ec1a113bbdf9c @resty-daze committed May 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/cpput.cc
View
@@ -68,6 +68,7 @@ TestResult& TestResult::inst() {
void TestResult::addFailure(const Failure& f) {
fprintf(stderr, "[FAIL] %s.%s\n", groupName.c_str(), f.toString().c_str());
++numFailure;
+ TestRegistry::inst().notifyFail();
}
void TestResult::print() {

0 comments on commit 849aff8

Please sign in to comment.