QtQuick test: Do not complain about Qt specific arguments
authorKai Koehne <kai.koehne@digia.com>
Tue, 25 Mar 2014 15:22:03 +0000 (16:22 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 3 Apr 2014 11:54:29 +0000 (13:54 +0200)
commitcf06b028f71fb80616be7fbb3ef3aaf7d5474eca
treefb5471c913a09efe4900a2c11bbf7fa33598aa72
parent8d172f1f3836f9f528ad85b4707582e44154450f
QtQuick test: Do not complain about Qt specific arguments

Commit 1ca5e82cccae0 caused a regression for Qt arguments like
-qmlsjsdebugger=xxx . These are automatically removed from argv by
QCoreApplication, but since we copied argv before instantiating
QCoreApplication this didn't have any effect.

Fix this by moving Q[Core]Application instantiation again before
the parsing and copying of testlib-specific arguments.

Task-number: QTBUG-37793
Change-Id: Ief41640b6cf3251f700a5d24d2e1141233a3888f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Liang Qi <liang.qi@digia.com>
src/qmltest/quicktest.cpp