aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2012-08-06 21:52:44 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2012-08-12 17:44:48 +0000
commit4e56a62f720282a083b2f8481b8250453dfc739f (patch)
treeb06d5c6d4da29a743fc48089b5a23a33777b82dd /src/qt
parent06f4e3367758dc6884af1bf44e9ccac8f1bdb9f7 (diff)
downloadbitcoin-4e56a62f720282a083b2f8481b8250453dfc739f.tar.xz
Return !0 when qt tests fail.
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/test/test_main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp
index 5b11e39ea3..af2d358fc4 100644
--- 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;
}