diff options
author | dan miller | 2007-10-19 04:28:53 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 04:28:53 +0000 |
commit | 0fc46fc9590912bf6925c899edd02d7a2cdf5f79 (patch) | |
tree | 51bcae7a1b8381a6bf6fd8025a7de1e30fe0045d /libraries/ode-0.9\/tests/CppTestHarness/PrintfTestReporter.cpp | |
parent | small bit of refactoring (diff) | |
download | opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.zip opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.tar.gz opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.tar.bz2 opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.tar.xz |
adding ode source to /libraries
Diffstat (limited to 'libraries/ode-0.9\/tests/CppTestHarness/PrintfTestReporter.cpp')
-rwxr-xr-x | libraries/ode-0.9\/tests/CppTestHarness/PrintfTestReporter.cpp | 25 |
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 100755 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 | |||
5 | namespace CppTestHarness | ||
6 | { | ||
7 | |||
8 | void 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 | |||
13 | void PrintfTestReporter::ReportSingleResult(const std::string& /*testName*/, bool /*failed*/) | ||
14 | { | ||
15 | //empty | ||
16 | } | ||
17 | |||
18 | void 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 | |||