From 026594e269c6bf30e4d69103717d969fc0b3531d Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 6 Aug 2012 21:52:44 +0200 Subject: [PATCH] Return !0 when qt tests fail. --- src/qt/test/test_main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp index 5b11e39ea37..af2d358fc47 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; }