diff options
Diffstat (limited to 'tests/auto/integration/tst_integration.cpp')
-rw-r--r-- | tests/auto/integration/tst_integration.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/integration/tst_integration.cpp b/tests/auto/integration/tst_integration.cpp index 5c42319..af5cba0 100644 --- a/tests/auto/integration/tst_integration.cpp +++ b/tests/auto/integration/tst_integration.cpp @@ -1384,6 +1384,20 @@ private slots: } + void invalidExternalTest() + { + QFETCH_GLOBAL(QUrl, hostUrl); + if (hostUrl.scheme() != QRemoteObjectStringLiterals::tcp()) + QSKIP("Skipping test for tcp and external backends."); + QRemoteObjectHost srcNode; + QTest::ignoreMessage(QtWarningMsg, " Overriding a valid QtRO url ( QUrl(\"tcp://127.0.0.1:65511\") ) with AllowExternalRegistration is not allowed."); + srcNode.setHostUrl(hostUrl, QRemoteObjectHost::AllowExternalRegistration); + QCOMPARE(srcNode.lastError(), QRemoteObjectNode::HostUrlInvalid); + Engine e; + bool res = srcNode.enableRemoting(&e); + QVERIFY(res == false); + } + }; QTEST_MAIN(tst_Integration) |