diff options
author | Dominik Holland <dominik.holland@nokia.com> | 2010-03-04 14:34:22 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-02 14:28:11 (GMT) |
commit | 65bad8e2c8894f23f47ff2b7418bcd1fc71d4602 (patch) | |
tree | f16410872cb6ce19848c1c161247c3c2be9829fb /tests/auto/qfileinfo | |
parent | 162ff4f01c5700da270f80f3e0decae11f42f6df (diff) | |
download | Qt-65bad8e2c8894f23f47ff2b7418bcd1fc71d4602.zip Qt-65bad8e2c8894f23f47ff2b7418bcd1fc71d4602.tar.gz Qt-65bad8e2c8894f23f47ff2b7418bcd1fc71d4602.tar.bz2 |
Fixed QFileInfo autotest to skip on NFS.
Exported the isLikelyToBeNfs() function to skip the fileInfo Test on NFS.
Otherwise the Test will fail, because the FileSystemTimes are not synchronized.
Diffstat (limited to 'tests/auto/qfileinfo')
-rw-r--r-- | tests/auto/qfileinfo/tst_qfileinfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp index 208110a..0306bb6 100644 --- a/tests/auto/qfileinfo/tst_qfileinfo.cpp +++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp @@ -70,6 +70,8 @@ # define SRCDIR "" #endif +extern bool isLikelyToBeNfs(int /* handle */); + //TESTED_CLASS= //TESTED_FILES= @@ -939,6 +941,8 @@ void tst_QFileInfo::fileTimes() QEXPECT_FAIL("longfile absolutepath", "Maximum total filepath cannot exceed 256 characters in Symbian", Abort); #endif QVERIFY(file.open(QFile::WriteOnly | QFile::Text)); + if(isLikelyToBeNfs(file.handle())) + QSKIP("This Test doesn't work on NFS", SkipAll); QTextStream ts(&file); ts << fileName << endl; } |