aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/tests/CppTestHarness/PrintfTestReporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ode-0.9/tests/CppTestHarness/PrintfTestReporter.cpp')
-rw-r--r--libraries/ode-0.9/tests/CppTestHarness/PrintfTestReporter.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/libraries/ode-0.9/tests/CppTestHarness/PrintfTestReporter.cpp b/libraries/ode-0.9/tests/CppTestHarness/PrintfTestReporter.cpp
new file mode 100644
index 0000000..68f7611
--- /dev/null
+++ b/libraries/ode-0.9/tests/CppTestHarness/PrintfTestReporter.cpp
@@ -0,0 +1,25 @@
1#include "PrintfTestReporter.h"
2
3#include <cstdio>
4
5namespace CppTestHarness
6{
7
8void PrintfTestReporter::ReportFailure(char const* file, int const line, std::string const failure)
9{
10 printf("%s(%d) : failure: %s\n", file, line, failure.c_str());
11}
12
13void PrintfTestReporter::ReportSingleResult(const std::string& /*testName*/, bool /*failed*/)
14{
15 //empty
16}
17
18void PrintfTestReporter::ReportSummary(int const testCount, int const failureCount)
19{
20 printf("%d tests run.\n", testCount);
21 printf("%d failures.\n", failureCount);
22}
23
24}
25