aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qmltest/quicktest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp
index 5b700b31b7..3164d9ec06 100644
--- a/src/qmltest/quicktest.cpp
+++ b/src/qmltest/quicktest.cpp
@@ -146,6 +146,10 @@ int quick_test_main(int argc, char **argv, const char *name, quick_test_viewport
argv[outargc] = 0;
argc = outargc;
+ // Parse the command-line arguments.
+ QuickTestResult::parseArgs(argc, argv);
+ QuickTestResult::setProgramName(name);
+
// Determine where to look for the test data.
if (testPath.isEmpty() && sourceDir)
testPath = QString::fromLocal8Bit(sourceDir);
@@ -170,9 +174,6 @@ int quick_test_main(int argc, char **argv, const char *name, quick_test_viewport
return 1;
}
- // Parse the command-line arguments.
- QuickTestResult::parseArgs(argc, argv);
- QuickTestResult::setProgramName(name);
// Scan through all of the "tst_*.qml" files and run each of them
// in turn with a QDeclarativeView.