Bugzilla – Attachment #1801: patch to fix (from Peter Barnes) for bug #1880
// let's run our tests now.
bool failed = false;
int retval = -1;
for (std::list<TestCase *>::const_iterator i = tests.begin (); i != tests.end (); ++i)
{
TestCase *test = *i;
failed = true;
if (!m_continueOnFailure)
return 1;
retval = 1;
break ;
}
delete os;
return failed?1:0;
if (retval == -1) retval = (failed ? 1 : 0);
return retval;
int