aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-04 17:23:41 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-04 20:53:04 +0000
commit8430c9d0042432e0b7b39ed42d7eefe6698525ae (patch)
tree9114d812d32a78a7b6c764e498de853b05049bcb /tests
parentad2f8bbf49739be5cba598181771cf50c972886c (diff)
tst_accessibility: print component errors when creation fails
The tests failed while working on support for static builds, but it was hard to see why it failed. Change-Id: I578123695f8e4bdda28bb8a11797045090d94acb Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/accessibility/tst_accessibility.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/accessibility/tst_accessibility.cpp b/tests/auto/accessibility/tst_accessibility.cpp
index 866d3b13..16a138b5 100644
--- a/tests/auto/accessibility/tst_accessibility.cpp
+++ b/tests/auto/accessibility/tst_accessibility.cpp
@@ -118,7 +118,7 @@ void tst_accessibility::a11y()
#endif
component.loadUrl(testFileUrl(fn + ".qml"));
QObject* created = component.create();
- QVERIFY(created);
+ QVERIFY2(created, qPrintable(component.errorString()));
QScopedPointer<QObject> cleanup(created);
QVERIFY(!cleanup.isNull());