From 65dfaba8d22823ccbde6669c13fa598b6d23710e Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 21 Nov 2016 14:53:16 +0100 Subject: [PATCH] make test binary exit with failure on failed tests --- tst/test.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; + } } -- 2.39.2