1
0
forked from boostorg/core

report_errors with expected failures (#51)

* Return number of failures from report_errors
This commit is contained in:
Hans Dembinski
2019-04-20 08:55:50 +02:00
committed by Peter Dimov
parent f14a464b29
commit 02041f6c9f
3 changed files with 2 additions and 3 deletions

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