aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2011-08-08 11:35:48 +1000
committerQt by Nokia <qt-info@nokia.com>2011-08-08 03:37:54 +0200
commit12aae0aab340f6fcb66b9b81f07884f4009d5dd1 (patch)
treebce421774273812741c130de6cd8bb2436c025a7
parent98555bf15ff50d6e70f78098ec0296cbc48a2b25 (diff)
parse args earlier
Change-Id: Ie0869d3f70d1e898a9b0635e28bcad2e92fa607c Reviewed-on: http://codereview.qt.nokia.com/2718 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
-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.