diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-02 14:58:09 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-02 14:58:09 (GMT) |
commit | c76f883b9c48acea35fe04cfe6dbf5036b224dd2 (patch) | |
tree | 1138cd5701ad4a08bf863a56e8f9e4de8b3e98e5 /tests | |
parent | 3923448118240a21cc169ea54d21f7ae1b324af8 (diff) | |
download | Qt-c76f883b9c48acea35fe04cfe6dbf5036b224dd2.zip Qt-c76f883b9c48acea35fe04cfe6dbf5036b224dd2.tar.gz Qt-c76f883b9c48acea35fe04cfe6dbf5036b224dd2.tar.bz2 |
fix isLikelyToBeNfs usage
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qfileinfo/tst_qfileinfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp index 0306bb6..910ed97 100644 --- a/tests/auto/qfileinfo/tst_qfileinfo.cpp +++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp @@ -70,7 +70,7 @@ # define SRCDIR "" #endif -extern bool isLikelyToBeNfs(int /* handle */); +extern Q_AUTOTEST_EXPORT bool isLikelyToBeNfs(int /* handle */); //TESTED_CLASS= //TESTED_FILES= @@ -941,8 +941,10 @@ 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())) +#ifdef Q_OS_UNIX + if (isLikelyToBeNfs(file.handle())) QSKIP("This Test doesn't work on NFS", SkipAll); +#endif QTextStream ts(&file); ts << fileName << endl; } |