summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-11-22 18:40:05 +0100
committerJoão Abecasis <joao.abecasis@nokia.com>2010-11-22 18:42:23 +0100
commit901fee7e610ec53f744416aeeca89c4605923120 (patch)
tree2736a1e520c32795c72ac39e40c3c60204554c92 /tests
parentee1f78b08521955342b2ce0f1244c7406bfd3124 (diff)
Fix QFile autotest for out-of-source builds
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qfile/tst_qfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qfile/tst_qfile.cpp b/tests/auto/qfile/tst_qfile.cpp
index f60ab1ebe7..dbd43026e0 100644
--- a/tests/auto/qfile/tst_qfile.cpp
+++ b/tests/auto/qfile/tst_qfile.cpp
@@ -1296,8 +1296,8 @@ void tst_QFile::link()
QSKIP("Symbian does not support links", SkipAll);
#endif
QFile::remove("myLink.lnk");
- QFileInfo info1("tst_qfile.cpp");
- QVERIFY(QFile::link("tst_qfile.cpp", "myLink.lnk"));
+ QFileInfo info1(SRCDIR "tst_qfile.cpp");
+ QVERIFY(QFile::link(SRCDIR "tst_qfile.cpp", "myLink.lnk"));
QFileInfo info2("myLink.lnk");
QVERIFY(info2.isSymLink());
QCOMPARE(info2.symLinkTarget(), info1.absoluteFilePath());