summaryrefslogtreecommitdiff
path: root/tests/auto/qxmlquery/tst_qxmlquery.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-06-25 21:42:55 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-28 08:19:52 +0200
commitf99b2298d2b9c48d75b85d2907e3fe12dda9a31b (patch)
tree796c300f9e8640f98a57c6fd5f943743a7bb5aec /tests/auto/qxmlquery/tst_qxmlquery.cpp
parent7eaba4571c17b9a43dc5397a4a6d98c5511b3f24 (diff)
downloadqtxmlpatterns-f99b2298d2b9c48d75b85d2907e3fe12dda9a31b.tar.gz
make test suite properly shadow build compatible
Change-Id: I42331f1894c6c09d098d84fc41f96c40f4725907 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/qxmlquery/tst_qxmlquery.cpp')
-rw-r--r--tests/auto/qxmlquery/tst_qxmlquery.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp
index ea1da11..c8d9110 100644
--- a/tests/auto/qxmlquery/tst_qxmlquery.cpp
+++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp
@@ -744,7 +744,7 @@ void tst_QXmlQuery::bindVariableQStringQIODeviceWithString() const
void tst_QXmlQuery::bindVariableQStringQIODeviceWithQFile() const
{
QXmlQuery query;
- QFile inDevice(QLatin1String(SRCDIR "input.xml"));
+ QFile inDevice(QFINDTESTDATA("input.xml"));
QVERIFY(inDevice.open(QIODevice::ReadOnly));
@@ -967,7 +967,7 @@ void tst_QXmlQuery::evaluateToReceiver()
QVERIFY(push.isValid());
query.evaluateTo(&push);
- const QString baselineName(inputFile(QLatin1String(SRCDIR "pushBaselines/") + inputQuery.left(inputQuery.length() - 2) + QString::fromLatin1("ref")));
+ const QString baselineName(QFINDTESTDATA("pushBaselines/") + inputQuery.left(inputQuery.length() - 2) + QString::fromLatin1("ref"));
QFile baseline(baselineName);
if(baseline.exists())
@@ -2030,7 +2030,7 @@ void tst_QXmlQuery::fnDocNetworkAccessSuccess_data() const
QTest::addColumn<QByteArray>("expectedOutput");
QTest::newRow("file scheme")
- << inputFileAsURI(QLatin1String(SRCDIR "input.xml"))
+ << inputFileAsURI(QFINDTESTDATA("input.xml"))
<< QByteArray("<!-- This is just a file for testing. --><input/>");
QTest::newRow("data scheme with ASCII")