Merge pull request #417 from Dmitry-Me/moreUsefulBracing

More useful bracing
This commit is contained in:
PKEuS 2014-09-04 10:38:23 +02:00
commit 179947aa54
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ int main(int argc, char *argv[])
{
options args(argc, const_cast<const char**>(argv));
std::size_t ret = TestFixture::runTests(args);
std::size_t failedTestsCount = TestFixture::runTests(args);
return (ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
return (failedTestsCount == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}