fixed the compilation warnings in CppUnitLite
parent
f77da96caf
commit
8fb2c00fc1
|
@ -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 ()
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue