summaryrefslogtreecommitdiff
path: root/test/test.cpp
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2017-08-17 14:04:22 +0200
committerJan Holesovsky <kendy@collabora.com>2017-08-17 14:04:22 +0200
commitd78c0b164b3ae8278d51d453a16a69aefe4fec2a (patch)
tree7405acf73e46b0e6526d33cf2def1810e748e7a7 /test/test.cpp
parentf8ca17278f8d1114e37e656025bbf0bac2d59cc7 (diff)
unit tests: Really bail out on error; and no need for a tempfile.
Change-Id: I53c1ab62bf9293217a5cada54c358292364ed60a
Diffstat (limited to 'test/test.cpp')
-rw-r--r--test/test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cpp b/test/test.cpp
index ed2f15af0..e989e3fa7 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -65,7 +65,7 @@ int main(int argc, char** argv)
Log::initialize("tst", loglevel, true, false, {});
- runClientTests(true, verbose);
+ return runClientTests(true, verbose)? 0: 1;
}
static bool IsStandalone = false;
@@ -134,7 +134,7 @@ bool runClientTests(bool standalone, bool verbose)
outputter.setNoWrap();
outputter.write();
- return result.wasSuccessful() ? 0 : 1;
+ return result.wasSuccessful();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */