fixed the compilation warnings in CppUnitLite
parent
f77da96caf
commit
8fb2c00fc1
|
@ -27,8 +27,8 @@ Failure::Failure (const SimpleString& theTestName,
|
|||
fileName (theFileName),
|
||||
lineNumber (theLineNumber)
|
||||
{
|
||||
char *part1 = "expected ";
|
||||
char *part3 = " but was: ";
|
||||
const char *part1 = "expected ";
|
||||
const char *part3 = " but was: ";
|
||||
|
||||
char *stage = new char [strlen (part1)
|
||||
+ expected.size ()
|
||||
|
|
|
@ -34,7 +34,7 @@ void TestResult::addFailure (const Failure& failure)
|
|||
void TestResult::testsEnded ()
|
||||
{
|
||||
if (failureCount > 0)
|
||||
fprintf (stdout, "There were %ld failures\n", failureCount);
|
||||
fprintf (stdout, "There were %d failures\n", failureCount);
|
||||
else
|
||||
fprintf (stdout, "There were no test failures\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue