summaryrefslogtreecommitdiff
path: root/uunit.h
diff options
context:
space:
mode:
Diffstat (limited to 'uunit.h')
-rw-r--r--uunit.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/uunit.h b/uunit.h
index c4c53ee..44dc2a0 100644
--- a/uunit.h
+++ b/uunit.h
@@ -59,7 +59,6 @@ public:
static int runTests(std::ofstream& out)
{
std::size_t test_num{0};
- std::size_t failed{0};
std::list<test_result> failed_tests;
std::list<test_result> successful_tests;
@@ -83,7 +82,6 @@ public:
result.func = test.name;
result.failure_type = "Assertion";
failed_tests.push_back(result);
- ++failed;
continue;
}
catch(...)
@@ -109,7 +107,6 @@ public:
}
result.failure_type = "Exception";
failed_tests.push_back(result);
- ++failed;
continue;
}
std::cout << ".";
@@ -159,7 +156,7 @@ public:
out << " </Statistics>" << std::endl;
out << "</TestRun>" << std::endl;
- return failed == 0 ? 0 : 1;
+ return failed_tests.size() == 0 ? 0 : 1;
}
protected: