summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-07-06 13:52:07 (GMT)
committeraxis <qt-info@nokia.com>2009-07-06 13:57:34 (GMT)
commit17ddd5a99179422e4ddbbd77c72a6598b8e8efff (patch)
tree08936c7ec1fbae2cf31422bb2e629df7f3592472 /tests
parent252090f78da07b67dcddfe5012e7497b3a135f85 (diff)
downloadQt-17ddd5a99179422e4ddbbd77c72a6598b8e8efff.zip
Qt-17ddd5a99179422e4ddbbd77c72a6598b8e8efff.tar.gz
Qt-17ddd5a99179422e4ddbbd77c72a6598b8e8efff.tar.bz2
Removed code that was left over when cleaning up.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qfile/tst_qfile.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/auto/qfile/tst_qfile.cpp b/tests/auto/qfile/tst_qfile.cpp
index db0d839..0f52811 100644
--- a/tests/auto/qfile/tst_qfile.cpp
+++ b/tests/auto/qfile/tst_qfile.cpp
@@ -1033,11 +1033,7 @@ void tst_QFile::link()
QVERIFY(QFile::link("tst_qfile.cpp", "myLink.lnk"));
QFileInfo info2("myLink.lnk");
QVERIFY(info2.isSymLink());
-#ifdef Q_OS_WIN // on windows links are always absolute
QCOMPARE(info2.symLinkTarget(), info1.absoluteFilePath());
-#else
- QCOMPARE(info2.symLinkTarget(), info1.absoluteFilePath());
-#endif
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
QString wd = getWorkingDirectoryForLink(info2.absoluteFilePath());
@@ -1063,11 +1059,7 @@ void tst_QFile::linkToDir()
// later fail...
QVERIFY(info2.isSymLink());
#endif
-#ifdef Q_OS_WIN // on windows links are alway absolute
- QCOMPARE(info2.symLinkTarget(), info1.absoluteFilePath());
-#else
QCOMPARE(info2.symLinkTarget(), info1.absoluteFilePath());
-#endif
QVERIFY(QFile::remove(info2.absoluteFilePath()));
QFile::remove("myLinkToDir.lnk");
dir.rmdir("myDir");
@@ -1110,11 +1102,7 @@ void tst_QFile::readBrokenLink()
#endif
QFileInfo info2("myLink2.lnk");
QVERIFY(info2.isSymLink());
-#ifdef Q_OS_WIN // on windows links are alway absolute
- QCOMPARE(info2.symLinkTarget(), info1.absoluteFilePath());
-#else
QCOMPARE(info2.symLinkTarget(), info1.absoluteFilePath());
-#endif
QVERIFY(QFile::remove(info2.absoluteFilePath()));
QVERIFY(QFile::link("ole/..", "myLink2.lnk"));