diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-10-05 13:07:30 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-10-05 13:09:23 (GMT) |
commit | bfe0e5c0d47780542b174dc96973920fba11c451 (patch) | |
tree | 3f475f2aa778ba50bfae5999544c01eb910e3de2 /tests/auto/qnetworkdiskcache | |
parent | b73f1b3d88927b0c51c0624f67695cfd80167d38 (diff) | |
download | Qt-bfe0e5c0d47780542b174dc96973920fba11c451.zip Qt-bfe0e5c0d47780542b174dc96973920fba11c451.tar.gz Qt-bfe0e5c0d47780542b174dc96973920fba11c451.tar.bz2 |
Fixes to qpixmapcache test cases, test case now adapts to cache_limit.
The default cache_limit in different platforms have different value.
For example in Symbian the default is currently 1024 KB where as for
desktop platforms the default is 10 MB.
The purpose of modified qpixmapcache test cases was to do operations
until cache_limit was reached. This was achieved by hard coded 40000
iterations. However this hard-coded value is fargile for cache limit
changes, and in addition it unnecessarily made the test exectuion to
take very long time on platforms which had smaller cache limit.
This patch changes the test so that number of expected items to fit
in cache is calculated and then 1000 extra items is tried to put
in cache to make sure limit is exceeded.
Reviewed-by: Alexis Menard
Diffstat (limited to 'tests/auto/qnetworkdiskcache')
0 files changed, 0 insertions, 0 deletions