summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qfileinfo/tst_qfileinfo.cpp6
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;
}