summaryrefslogtreecommitdiff
path: root/tests/auto/patternistexamples/tst_patternistexamples.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/patternistexamples/tst_patternistexamples.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/patternistexamples/tst_patternistexamples.cpp')
-rw-r--r--tests/auto/patternistexamples/tst_patternistexamples.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/auto/patternistexamples/tst_patternistexamples.cpp b/tests/auto/patternistexamples/tst_patternistexamples.cpp
index 3ae263b..8d0c46d 100644
--- a/tests/auto/patternistexamples/tst_patternistexamples.cpp
+++ b/tests/auto/patternistexamples/tst_patternistexamples.cpp
@@ -82,17 +82,17 @@ private:
void tst_PatternistExamples::initTestCase()
{
#ifndef Q_OS_WINCE
- m_dirs.append(QDir(QLatin1String("../../../doc/src/snippets/patternist/")));
- m_dirs.append(QDir(QLatin1String("../../../examples/xmlpatterns/xquery/globalVariables/")));
- m_dirs.append(QDir(QLatin1String("../../../examples/xmlpatterns/filetree/")));
- m_dirs.append(QDir(QLatin1String("../../../examples/xmlpatterns/recipes/")));
- m_dirs.append(QDir(QLatin1String("../../../examples/xmlpatterns/recipes/files/")));
+ m_dirs.append(QDir(QLatin1String(SOURCETREE "doc/src/snippets/patternist/")));
+ m_dirs.append(QDir(QLatin1String(SOURCETREE "examples/xmlpatterns/xquery/globalVariables/")));
+ m_dirs.append(QDir(QLatin1String(SOURCETREE "examples/xmlpatterns/filetree/")));
+ m_dirs.append(QDir(QLatin1String(SOURCETREE "examples/xmlpatterns/recipes/")));
+ m_dirs.append(QDir(QLatin1String(SOURCETREE "examples/xmlpatterns/recipes/files/")));
#else
- m_dirs.append(QDir(QLatin1String("patternist/")));
- m_dirs.append(QDir(QLatin1String("globalVariables/")));
- m_dirs.append(QDir(QLatin1String("filetree/")));
- m_dirs.append(QDir(QLatin1String("recipes/")));
- m_dirs.append(QDir(QLatin1String("recipes/files/")));
+ m_dirs.append(QDir(QFINDTESTDATA("patternist/")));
+ m_dirs.append(QDir(QFINDTESTDATA("globalVariables/")));
+ m_dirs.append(QDir(QFINDTESTDATA("filetree/")));
+ m_dirs.append(QDir(QFINDTESTDATA("recipes/")));
+ m_dirs.append(QDir(QFINDTESTDATA("recipes/files/")));
#endif
for(int i = 0; i < m_dirs.size(); ++i)
QVERIFY(m_dirs.at(i).exists());