changeset 3293:e2cf93399d00 draft

Return !0 when qt tests fail.
author Matt Corallo <git@bluematt.me>
date Mon, 06 Aug 2012 21:52:44 +0200 (2012-08-06)
parents f1d60c533a9e
children 41b8faf4bd87
files src/qt/test/test_main.cpp
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/qt/test/test_main.cpp
+++ b/src/qt/test/test_main.cpp
@@ -6,6 +6,11 @@
 // This is all you need to run all the tests
 int main(int argc, char *argv[])
 {
+    bool fInvalid = false;
+
     URITests test1;
-    QTest::qExec(&test1);
+    if (QTest::qExec(&test1) != 0)
+        fInvalid = true;
+
+    return fInvalid;
 }