diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-12-14 08:55:57 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-12-14 09:01:30 (GMT) |
commit | b2f4c48d5d3096e7c12fd51b8bc6bdabe2c6fd7b (patch) | |
tree | b417e3a87a91a1d8757849c0da49df98c0594996 | |
parent | 5b7e896355f555cc24ee1d181f622aa2856db0fc (diff) | |
download | Qt-b2f4c48d5d3096e7c12fd51b8bc6bdabe2c6fd7b.zip Qt-b2f4c48d5d3096e7c12fd51b8bc6bdabe2c6fd7b.tar.gz Qt-b2f4c48d5d3096e7c12fd51b8bc6bdabe2c6fd7b.tar.bz2 |
Skipped the most memory intensive tests in QByteArray benchmark.
Symbian devices typically have limited memory, so skipping the cases
that require tens of megabytes or more of memory.
Task-number: QTBUG-6780
Reviewed-by: Janne Anttila
-rw-r--r-- | tests/benchmarks/qbytearray/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/benchmarks/qbytearray/main.cpp b/tests/benchmarks/qbytearray/main.cpp index 6a481f1..78c5b16 100644 --- a/tests/benchmarks/qbytearray/main.cpp +++ b/tests/benchmarks/qbytearray/main.cpp @@ -73,6 +73,11 @@ void tst_qbytearray::append() { QFETCH(int, size); +#ifdef Q_OS_SYMBIAN + if (size > 1000000) + QSKIP("Skipped due to limited memory in many Symbian devices.", SkipSingle); +#endif + QByteArray ba; QBENCHMARK { QByteArray ba2(size, 'x'); |