From c76f883b9c48acea35fe04cfe6dbf5036b224dd2 Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Tue, 2 Nov 2010 15:58:09 +0100 Subject: fix isLikelyToBeNfs usage --- tests/auto/qfileinfo/tst_qfileinfo.cpp | 6 ++++-- 1 file 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; } -- cgit v0.12