forked from boostorg/core
report_errors with expected failures (#51)
* Return number of failures from report_errors
This commit is contained in:
committed by
Peter Dimov
parent
f14a464b29
commit
02041f6c9f
@@ -383,14 +383,13 @@ inline int report_errors()
|
||||
{
|
||||
BOOST_LIGHTWEIGHT_TEST_OSTREAM
|
||||
<< "No errors detected." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
BOOST_LIGHTWEIGHT_TEST_OSTREAM
|
||||
<< errors << " error" << (errors == 1? "": "s") << " detected." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
return errors;
|
||||
}
|
||||
|
||||
} // namespace boost
|
||||
|
||||
Reference in New Issue
Block a user