From: Daniel Karbach Date: Mon, 21 Nov 2016 13:53:16 +0000 (+0100) Subject: make test binary exit with failure on failed tests X-Git-Url: http://git.localhorst.tv/?p=blank.git;a=commitdiff_plain;h=65dfaba8d22823ccbde6669c13fa598b6d23710e make test binary exit with failure on failed tests --- diff --git a/tst/test.cpp b/tst/test.cpp index ff1ce71..f95ead3 100644 --- a/tst/test.cpp +++ b/tst/test.cpp @@ -9,8 +9,9 @@ int main(int, char **) { TestRunner runner; TestFactoryRegistry ®istry = TestFactoryRegistry::getRegistry(); runner.addTest(registry.makeTest()); - runner.run(); - - return 0; - + if (runner.run()) { + return 0; + } else { + return 1; + } }