From 9a096d9eb078f83b1e6f934ebaf863145f067fbc Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 19 Sep 2011 10:56:12 +0200 Subject: Move handling of -qmljsdebugger argument to QCoreApplication Move handling of -qmljsdebugger= argument from QApplication to QCoreApplication. It makes sense to allow debugging also for applications based on QCoreApplication (which we intend to support in QtDeclarative). Change-Id: I5a03a4510fc166cea5aad146da673ee0e7cd5d36 Reviewed-on: http://codereview.qt-project.org/5121 Reviewed-by: Qt Sanity Bot Reviewed-by: Kent Hansen --- .../auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp b/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp index 99f0941ac2..62275f841a 100644 --- a/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp +++ b/tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp @@ -144,6 +144,14 @@ void tst_QCoreApplication::argc() QCOMPARE(argc, 0); QCOMPARE(app.argc(), 0); } + + { + int argc = 2; + char *argv[] = { "tst_qcoreapplication", "-qmljsdebugger=port:3768,block" }; + QCoreApplication app(argc, argv); + QCOMPARE(argc, 1); + QCOMPARE(app.argc(), 1); + } } class EventGenerator : public QObject -- cgit v1.2.3