diff options
author | mread <qt-info@nokia.com> | 2011-10-28 11:23:32 (GMT) |
---|---|---|
committer | mread <qt-info@nokia.com> | 2011-10-28 11:30:31 (GMT) |
commit | 1bf8f94aeb8d40ca6ce8e55fc7add2d64ceadd50 (patch) | |
tree | ad593bed0d0f4a6eeaf52707d14aafceed7c02af /tests | |
parent | e392f641e569be04a7f6a9336b52c77a9ec0c627 (diff) | |
download | Qt-1bf8f94aeb8d40ca6ce8e55fc7add2d64ceadd50.zip Qt-1bf8f94aeb8d40ca6ce8e55fc7add2d64ceadd50.tar.gz Qt-1bf8f94aeb8d40ca6ce8e55fc7add2d64ceadd50.tar.bz2 |
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.cpp | 4 |
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 5b5f0f7..daefe12 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; |