aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-30 17:59:02 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-31 06:43:37 +0000
commitdd36087c82e3ff94df8958fbd0fac444e10432a9 (patch)
treec3601ab512382e37aefb57a90b6b577e4cefffba /tests/auto/quick
parent6557b7118897347ccf7c5915c169cf86c818be83 (diff)
Add some diagnostics to pixmap cache test
This test is failing frequently and it's unclear why. Change-Id: Ib06582d9d515b3cd571f643077b7e8382f6a98a4 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick')
-rw-r--r--tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp b/tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp
index 627ff19fb8..0064212a78 100644
--- a/tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp
+++ b/tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp
@@ -261,7 +261,9 @@ void tst_qquickpixmapcache::parallel()
}
}
- QCOMPARE(incache+slotters, targets.count());
+ if (incache + slotters != targets.count())
+ QFAIL(QString::fromLatin1("pixmap counts don't add up: %1 incache, %2 slotters, %3 total")
+ .arg(incache).arg(slotters).arg(targets.count()).toLatin1().constData());
if (cancel >= 0) {
pixmaps.at(cancel)->clear(getters[cancel]);
@@ -282,7 +284,12 @@ void tst_qquickpixmapcache::parallel()
if (pending[i])
QVERIFY(getters[i]->gotslot);
- QVERIFY(pixmap->isReady());
+ if (!pixmap->isReady()) {
+ QFAIL(QString::fromLatin1("pixmap %1 not ready, status %2: %3")
+ .arg(pixmap->url().toString()).arg(pixmap->status())
+ .arg(pixmap->error()).toLatin1().constData());
+
+ }
QVERIFY(pixmap->width() > 0);
delete getters[i];
}