summaryrefslogtreecommitdiff
path: root/tests/auto/qxmlformatter/tst_qxmlformatter.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/qxmlformatter/tst_qxmlformatter.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/qxmlformatter/tst_qxmlformatter.cpp')
-rw-r--r--tests/auto/qxmlformatter/tst_qxmlformatter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qxmlformatter/tst_qxmlformatter.cpp b/tests/auto/qxmlformatter/tst_qxmlformatter.cpp
index 231455d..9ec0e4e 100644
--- a/tests/auto/qxmlformatter/tst_qxmlformatter.cpp
+++ b/tests/auto/qxmlformatter/tst_qxmlformatter.cpp
@@ -139,7 +139,7 @@ void tst_QXmlFormatter::format()
{
QFETCH(QString, testName);
- const QString location(QLatin1String("input/") + testName);
+ const QString location(QFINDTESTDATA("input/") + testName);
QFile queryFile(location);
QVERIFY(queryFile.open(QIODevice::ReadOnly));
@@ -154,7 +154,7 @@ void tst_QXmlFormatter::format()
QVERIFY(query.evaluateTo(&formatter));
- QFile expectedFile(QLatin1String("baselines/") + testName.left(testName.length() - 2) + QString::fromLatin1("xml"));
+ QFile expectedFile(QFINDTESTDATA("baselines/") + testName.left(testName.length() - 2) + QString::fromLatin1("xml"));
if(expectedFile.exists())
{
@@ -178,7 +178,7 @@ void tst_QXmlFormatter::format_data() const
QTest::addColumn<QString>("testName");
QDir dir;
- dir.cd(QLatin1String("input"));
+ dir.cd(QFINDTESTDATA("input"));
const QStringList entries(dir.entryList(QStringList(QLatin1String("*.xq"))));
for(int i = 0; i < entries.count(); ++i)