report_errors with expected failures (#51)

* Return number of failures from report_errors
This commit is contained in:
Hans Dembinski authored and Peter Dimov committed 2019-04-19 23:55:50 -07:00
1 parent f14a464b29
commit 02041f6c9f
3 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -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