summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormread <qt-info@nokia.com>2011-10-28 12:23:32 +0100
committermread <qt-info@nokia.com>2011-10-28 12:30:31 +0100
commit1bf8f94aeb8d40ca6ce8e55fc7add2d64ceadd50 (patch)
treead593bed0d0f4a6eeaf52707d14aafceed7c02af /tests
parente392f641e569be04a7f6a9336b52c77a9ec0c627 (diff)
downloadqt4-tools-1bf8f94aeb8d40ca6ce8e55fc7add2d64ceadd50.tar.gz
Removed unix specific mmap use from QString benchmark
The mmap flags MAP_ANONYMOUS and MAP_POPULATE are unix specific, and are not supported by Symbian's posix headers. The benchmark code using them, already unix-only, now is removed from Symbian builds. Task-number: QTBUG-18197 Reviewed-by: Shane Kearns
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/corelib/tools/qstring/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/corelib/tools/qstring/main.cpp b/tests/benchmarks/corelib/tools/qstring/main.cpp
index 5b5f0f75b3..daefe128d8 100644
--- a/tests/benchmarks/corelib/tools/qstring/main.cpp
+++ b/tests/benchmarks/corelib/tools/qstring/main.cpp
@@ -784,7 +784,7 @@ void tst_QString::equals2_data() const
static void __attribute__((noinline)) equals2_selftest()
{
-#ifdef Q_OS_UNIX
+#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
const long pagesize = sysconf(_SC_PAGESIZE);
void *page1, *page3;
ushort *page2;
@@ -1341,7 +1341,7 @@ void tst_QString::ucstrncmp() const
};
static const int functionCount = sizeof func / sizeof func[0];
-#ifdef Q_OS_UNIX
+#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
const long pagesize = sysconf(_SC_PAGESIZE);
void *page1, *page3;
ushort *page2;