diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-03-12 09:41:08 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-03-12 13:55:40 +0000 |
commit | cd5ca0a582dda5e49d97e5db6b2b64b30e5553bd (patch) | |
tree | b5d901e4b2a7fe44d1fe39014b8783ab46f1fa83 /tests/auto/qml/debugger/qqmldebuggingenabler | |
parent | 5d431e2fdf709dca7d4026fd26468ad33117e5f0 (diff) |
Remove bogus autotests for invalid ports
Qt itself doesn't prevent opening a socket in the reserved port range.
So what these tests actually check is the system configuration, not Qt.
Task-number: QTBUG-44952
Change-Id: Iee6d6d1a5a7a0f4d2039300ccbbbe8bf55a519b9
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/debugger/qqmldebuggingenabler')
-rw-r--r-- | tests/auto/qml/debugger/qqmldebuggingenabler/tst_qqmldebuggingenabler.cpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/tests/auto/qml/debugger/qqmldebuggingenabler/tst_qqmldebuggingenabler.cpp b/tests/auto/qml/debugger/qqmldebuggingenabler/tst_qqmldebuggingenabler.cpp index 7f8ded51ba..73abc03e28 100644 --- a/tests/auto/qml/debugger/qqmldebuggingenabler/tst_qqmldebuggingenabler.cpp +++ b/tests/auto/qml/debugger/qqmldebuggingenabler/tst_qqmldebuggingenabler.cpp @@ -55,17 +55,9 @@ private slots: void cleanup(); void qmlscene(); void qmlsceneBlock(); - void qmlsceneInvalidPorts(); - void qmlsceneBlockInvalidPorts(); - void qmlsceneMixedPorts(); - void qmlsceneBlockMixedPorts(); void custom(); void customBlock(); - void customInvalidPorts(); - void customBlockInvalidPorts(); - void customMixedPorts(); - void customBlockMixedPorts(); private: QQmlDebugProcess *process; @@ -161,30 +153,6 @@ void tst_QQmlDebuggingEnabler::qmlsceneBlock() QVERIFY(init(true, true, 5555, 5565)); } -void tst_QQmlDebuggingEnabler::qmlsceneInvalidPorts() -{ - QVERIFY(!init(false, true, 10, 20)); - QVERIFY(process->output().contains( - QLatin1String("QML Debugger: Unable to listen to ports 10 - 20."))); -} - -void tst_QQmlDebuggingEnabler::qmlsceneBlockInvalidPorts() -{ - QVERIFY(!init(true, true, 10, 20)); - QVERIFY(process->output().contains( - QLatin1String("QML Debugger: Unable to listen to ports 10 - 20."))); -} - -void tst_QQmlDebuggingEnabler::qmlsceneMixedPorts() -{ - QVERIFY(init(false, true, 1020, 1030)); -} - -void tst_QQmlDebuggingEnabler::qmlsceneBlockMixedPorts() -{ - QVERIFY(init(true, true, 1020, 1030)); -} - void tst_QQmlDebuggingEnabler::custom() { QVERIFY(init(false, false, 5555, 5565)); @@ -195,42 +163,6 @@ void tst_QQmlDebuggingEnabler::customBlock() QVERIFY(init(true, false, 5555, 5565)); } -void tst_QQmlDebuggingEnabler::customInvalidPorts() -{ - QVERIFY(!init(false, false, 10, 20)); - for (int i = 10; i < 20; ++i) { - QVERIFY(process->output().contains( - QString(QLatin1String("QML Debugger: Unable to listen to port %1.")).arg(i))); - } -} - -void tst_QQmlDebuggingEnabler::customBlockInvalidPorts() -{ - QVERIFY(!init(true, false, 10, 20)); - for (int i = 10; i < 20; ++i) { - QVERIFY(process->output().contains( - QString(QLatin1String("QML Debugger: Unable to listen to port %1.")).arg(i))); - } -} - -void tst_QQmlDebuggingEnabler::customMixedPorts() -{ - QVERIFY(init(false, false, 1020, 1030)); - for (int i = 1020; i < 1024; ++i) { - QVERIFY(process->output().contains( - QString(QLatin1String("QML Debugger: Unable to listen to port %1.")).arg(i))); - } -} - -void tst_QQmlDebuggingEnabler::customBlockMixedPorts() -{ - QVERIFY(init(true, false, 1020, 1030)); - for (int i = 1020; i < 1024; ++i) { - QVERIFY(process->output().contains( - QString(QLatin1String("QML Debugger: Unable to listen to port %1.")).arg(i))); - } -} - namespace QQmlDebuggingEnablerTest { QTEST_MAIN(tst_QQmlDebuggingEnabler) } |