diff options
| author | Matt Corallo <[email protected]> | 2012-08-06 21:52:44 +0200 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2012-08-07 19:36:54 +0200 |
| commit | 026594e269c6bf30e4d69103717d969fc0b3531d (patch) | |
| tree | 3f44775e365e82b69f17085ada11eb0248b9ee69 /src/qt/test/test_main.cpp | |
| parent | Merge pull request #1650 from Diapolo/spelling_fixes (diff) | |
| download | discoin-026594e269c6bf30e4d69103717d969fc0b3531d.tar.xz discoin-026594e269c6bf30e4d69103717d969fc0b3531d.zip | |
Return !0 when qt tests fail.
Diffstat (limited to 'src/qt/test/test_main.cpp')
| -rw-r--r-- | src/qt/test/test_main.cpp | 7 |
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;
}
|