summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativepixmapcache
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-08-12 02:38:53 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-08-12 02:38:53 (GMT)
commitee7c3b576ced47d3b68da1913cdf6995144bddd2 (patch)
treefd0011bb4c7125c811a1acd7b5c65da4eed97a6c /tests/auto/declarative/qdeclarativepixmapcache
parent59d36ea601aef6182cba0e0f5fc56cc102e29c59 (diff)
downloadQt-ee7c3b576ced47d3b68da1913cdf6995144bddd2.zip
Qt-ee7c3b576ced47d3b68da1913cdf6995144bddd2.tar.gz
Qt-ee7c3b576ced47d3b68da1913cdf6995144bddd2.tar.bz2
Only modify pixmap cache reply when protected by a mutex
QTBUG-12729
Diffstat (limited to 'tests/auto/declarative/qdeclarativepixmapcache')
-rw-r--r--tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp b/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
index 16d2063..6b36224 100644
--- a/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
+++ b/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
@@ -71,6 +71,7 @@ private slots:
void parallel();
void parallel_data();
void massive();
+ void cancelcrash();
private:
QDeclarativeEngine engine;
@@ -316,6 +317,15 @@ void tst_qdeclarativepixmapcache::massive()
}
}
+// QTBUG-12729
+void tst_qdeclarativepixmapcache::cancelcrash()
+{
+ QUrl url("http://127.0.0.1:14452/cancelcrash_notexist.png");
+ for (int ii = 0; ii < 1000; ++ii) {
+ QDeclarativePixmap pix(&engine, url);
+ }
+}
+
QTEST_MAIN(tst_qdeclarativepixmapcache)
#include "tst_qdeclarativepixmapcache.moc"