diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-04 09:20:27 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-04 09:20:27 (GMT) |
commit | 095f416f806062ab23d82c6907fffac4f862ee3b (patch) | |
tree | abb8d31e4010df303dff5ea7add0aab85c17d3b9 | |
parent | 4fc2d7f1b14c26d10968c99dd296e056a2beed4d (diff) | |
download | Qt-095f416f806062ab23d82c6907fffac4f862ee3b.zip Qt-095f416f806062ab23d82c6907fffac4f862ee3b.tar.gz Qt-095f416f806062ab23d82c6907fffac4f862ee3b.tar.bz2 |
Fix tst_symbols auto test
Prefix isLikelyToBeNfs with a "q", even though it's only
autotest-exported.
-rw-r--r-- | src/corelib/io/qsettings.cpp | 10 | ||||
-rw-r--r-- | tests/auto/qfileinfo/tst_qfileinfo.cpp | 4 | ||||
-rw-r--r-- | tests/auto/symbols/tst_symbols.cpp | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/corelib/io/qsettings.cpp b/src/corelib/io/qsettings.cpp index c94ec7b..e6c5fb9 100644 --- a/src/corelib/io/qsettings.cpp +++ b/src/corelib/io/qsettings.cpp @@ -140,7 +140,7 @@ QT_BEGIN_INCLUDE_NAMESPACE # include <sys/mount.h> QT_END_INCLUDE_NAMESPACE -Q_AUTOTEST_EXPORT_HELPER bool isLikelyToBeNfs(int handle) +Q_AUTOTEST_EXPORT_HELPER bool qIsLikelyToBeNfs(int handle) { struct statfs buf; if (fstatfs(handle, &buf) != 0) @@ -166,7 +166,7 @@ QT_END_INCLUDE_NAMESPACE # define AUTOFSNG_SUPER_MAGIC 0x7d92b1a0 # endif -Q_AUTOTEST_EXPORT_HELPER bool isLikelyToBeNfs(int handle) +Q_AUTOTEST_EXPORT_HELPER bool qIsLikelyToBeNfs(int handle) { struct statfs buf; if (fstatfs(handle, &buf) != 0) @@ -183,7 +183,7 @@ QT_BEGIN_INCLUDE_NAMESPACE # include <sys/statvfs.h> QT_END_INCLUDE_NAMESPACE -Q_AUTOTEST_EXPORT_HELPER bool isLikelyToBeNfs(int handle) +Q_AUTOTEST_EXPORT_HELPER bool qIsLikelyToBeNfs(int handle) { struct statvfs buf; if (fstatvfs(handle, &buf) != 0) @@ -195,7 +195,7 @@ Q_AUTOTEST_EXPORT_HELPER bool isLikelyToBeNfs(int handle) #endif } #else -Q_AUTOTEST_EXPORT_HELPER inline bool isLikelyToBeNfs(int /* handle */) +Q_AUTOTEST_EXPORT_HELPER inline bool qIsLikelyToBeNfs(int /* handle */) { return true; } @@ -209,7 +209,7 @@ static bool unixLock(int handle, int lockType) now is to disable locking when we detect NFS (or AutoFS or CacheFS, which are probably wrapping NFS). */ - if (isLikelyToBeNfs(handle)) + if (qIsLikelyToBeNfs(handle)) return false; struct flock fl; diff --git a/tests/auto/qfileinfo/tst_qfileinfo.cpp b/tests/auto/qfileinfo/tst_qfileinfo.cpp index 910ed97..5ec721b 100644 --- a/tests/auto/qfileinfo/tst_qfileinfo.cpp +++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp @@ -70,7 +70,7 @@ # define SRCDIR "" #endif -extern Q_AUTOTEST_EXPORT bool isLikelyToBeNfs(int /* handle */); +extern Q_AUTOTEST_EXPORT bool qIsLikelyToBeNfs(int /* handle */); //TESTED_CLASS= //TESTED_FILES= @@ -942,7 +942,7 @@ void tst_QFileInfo::fileTimes() #endif QVERIFY(file.open(QFile::WriteOnly | QFile::Text)); #ifdef Q_OS_UNIX - if (isLikelyToBeNfs(file.handle())) + if (qIsLikelyToBeNfs(file.handle())) QSKIP("This Test doesn't work on NFS", SkipAll); #endif QTextStream ts(&file); diff --git a/tests/auto/symbols/tst_symbols.cpp b/tests/auto/symbols/tst_symbols.cpp index 28970eb..1572a5f 100644 --- a/tests/auto/symbols/tst_symbols.cpp +++ b/tests/auto/symbols/tst_symbols.cpp @@ -443,7 +443,7 @@ void tst_Symbols::prefix() # if defined(Q_OS_LINUX) && defined(Q_CC_INTEL) QEXPECT_FAIL("", "linux-icc* incorrectly exports some QtWebkit symbols, waiting for a fix from Intel.", Continue); # endif - QVERIFY2(!isFailed, "Libraries contain non-prefixed symbols. See Debug output :)"); + QVERIFY2(!isFailed, "Libraries contain non-prefixed symbols. See Debug output above."); #else QSKIP("Linux-specific test", SkipAll); #endif |