CodeCoverage: Fix wrong type passed to saveCoverageTool.
authorCaroline Chao <caroline.chao@nokia.com>
Tue, 7 Feb 2012 11:35:58 +0000 (12:35 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 8 Feb 2012 14:03:25 +0000 (15:03 +0100)
Passing a bool as appropriate.

Change-Id: I0dcca8d30c6d75e7fcddcf7047e1dd1c572ec6ea
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>

src/qmltest/quicktest.cpp

index 2803378..b1b9897 100644 (file)
@@ -337,7 +337,7 @@ int quick_test_main(int argc, char **argv, const char *name, quick_test_viewport
     // Flush the current logging stream.
     QuickTestResult::setProgramName(0);
 
-    saveCoverageTool(argv[0], QuickTestResult::exitCode());
+    saveCoverageTool(argv[0], QuickTestResult::exitCode() != 0);
 
     //Sometimes delete app cause crash here with some qpa plugins,
     //so we comment the follow line out to make them happy.