From 79893572a1cd2a7a880dbb3b820006187a992921 Mon Sep 17 00:00:00 2001 From: Thiago Macieira <thiago.macieira@intel.com> Date: Wed, 3 Oct 2012 08:45:38 -0700 Subject: [PATCH] Remove invalid URIs from testing with QXmlQuery QXmlQuery requires proper URIs/URLs and these two aren't valid. A scheme is never empty and a path cannot contain a colon before the first slash. QUrl has been pointing out that new error condition since 7d62f8ace542e04e3ddf92eec4fdad8d34ac9585 Change-Id: Ic206908345f45b1cce0a3733584a65b02b8c2791 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> --- tests/auto/qxmlquery/tst_qxmlquery.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp index 1bd1b527..928d67bc 100644 --- a/tests/auto/qxmlquery/tst_qxmlquery.cpp +++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp @@ -2108,10 +2108,7 @@ void tst_QXmlQuery::fnDocNetworkAccessFailure_data() const << QUrl(QLatin1String("qrc:/QXmlQueryTestData/notWellformed.xml")); QTest::newRow("'qrc:/', non-existing file") - << QUrl(QLatin1String(":/QXmlQueryTestData/data/thisFileDoesNotExist.xml")); - - QTest::newRow("':/', this scheme is not supported") - << QUrl(QLatin1String(":/QXmlQueryTestData/data/notWellformed.xml")); + << QUrl(QLatin1String("qrc:/QXmlQueryTestData/data/thisFileDoesNotExist.xml")); if(!m_testNetwork) return; -- GitLab