fixed the compilation warnings in CppUnitLite

release/4.3a0
Kai Ni 2010-01-06 18:59:14 +00:00
parent f77da96caf
commit 8fb2c00fc1
2 changed files with 3 additions and 3 deletions

View File

@ -27,8 +27,8 @@ Failure::Failure (const SimpleString& theTestName,
fileName (theFileName), fileName (theFileName),
lineNumber (theLineNumber) lineNumber (theLineNumber)
{ {
char *part1 = "expected "; const char *part1 = "expected ";
char *part3 = " but was: "; const char *part3 = " but was: ";
char *stage = new char [strlen (part1) char *stage = new char [strlen (part1)
+ expected.size () + expected.size ()

View File

@ -34,7 +34,7 @@ void TestResult::addFailure (const Failure& failure)
void TestResult::testsEnded () void TestResult::testsEnded ()
{ {
if (failureCount > 0) if (failureCount > 0)
fprintf (stdout, "There were %ld failures\n", failureCount); fprintf (stdout, "There were %d failures\n", failureCount);
else else
fprintf (stdout, "There were no test failures\n"); fprintf (stdout, "There were no test failures\n");
} }