aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test/test_main.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2012-08-07 17:59:06 -0700
committerJeff Garzik <[email protected]>2012-08-07 17:59:06 -0700
commit2c006b0b3e6a94fc0fdac80ff2db3af93f768064 (patch)
tree4868d0c22eb9053096009763e7e06d1120c3eee3 /src/qt/test/test_main.cpp
parentMerge pull request #1660 from fanquake/master (diff)
parentFix test_bitcoin build in makefile.linux-mingw (diff)
downloaddiscoin-2c006b0b3e6a94fc0fdac80ff2db3af93f768064.tar.xz
discoin-2c006b0b3e6a94fc0fdac80ff2db3af93f768064.zip
Merge pull request #1658 from TheBlueMatt/qttest
Fix several issues in the Qt unit tests.
Diffstat (limited to 'src/qt/test/test_main.cpp')
-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 5b11e39ea..af2d358fc 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;
}