#include <QTest>
#include <QObject>

#include "uritests.h"

// This is all you need to run all the tests
int main(int argc, char *argv[])
{
    bool fInvalid = false;

    URITests test1;
    if (QTest::qExec(&test1) != 0)
        fInvalid = true;

    return fInvalid;
}

#include <QTest>
#include <QObject>

#include "uritests.h"

// This is all you need to run all the tests
int main(int argc, char *argv[])
{
    URITests test1;
    QTest::qExec(&test1);
}

--- 
+++ 
@@ -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;
 }
Return !0 when qt tests fail.
