/**
* Prints the header of the report.
+ * @param runner test runner.
+ * @param result test result.
*/
static void printHeader (CCUnitTestRunner* runner, CCUnitTestResult* result)
{
/**
* Prints failures.
+ * @param runner test runner.
+ * @param result test result.
*/
static void printFailures (CCUnitTestRunner* runner, CCUnitTestResult* result)
{
while ((f = ccunit_nextListIterator (itor)) != NULL)
{
fprintf (runner->ofp, "%s:%u: %s:\n\t%s\n",
- f->file, f->line, f->testCase->desc, f->condstr);
+ f->file, f->line,
+ f->testCase != NULL ? f->testCase->desc : "",
+ f->condstr);
if (f->expect || f->actual)
fprintf (runner->ofp, "\texpect: %s\n\tactual: %s\n", f->expect, f->actual);
}
return runner->run (runner, suite);
}
+inline CCUnitTestResult* ccunit_getResult (CCUnitTestRunner* runner)
+{
+ return runner->result;
+}
+
/** @} */