diff options
author | aavit <qt-info@nokia.com> | 2011-05-03 13:32:23 +0200 |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2011-05-03 13:32:23 +0200 |
commit | 50be38737507f5c23b4d050e635a200024164a13 (patch) | |
tree | 50520e1e4362f167ade735613677f57063b3a6d2 /tests/auto/lancelot | |
parent | 4fe5307af44a76b99cc8c70aa330180c1985eabc (diff) | |
download | qt4-tools-50be38737507f5c23b4d050e635a200024164a13.tar.gz |
Make autotest more resilient against network timeout
Diffstat (limited to 'tests/auto/lancelot')
-rw-r--r-- | tests/auto/lancelot/tst_lancelot.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/lancelot/tst_lancelot.cpp b/tests/auto/lancelot/tst_lancelot.cpp index 972166514a..2eb3f200ed 100644 --- a/tests/auto/lancelot/tst_lancelot.cpp +++ b/tests/auto/lancelot/tst_lancelot.cpp @@ -254,7 +254,8 @@ void tst_Lancelot::runTestSuite(GraphicsEngine engine, QImage::Format format) if (baseline.status == ImageItem::BaselineNotFound) { - proto.submitNewBaseline(rendered, 0); + if (!proto.submitNewBaseline(rendered, 0)) + QWARN("Failed to submit new baseline: " + proto.errorMessage().toLatin1()); QSKIP("Baseline not found; new baseline created.", SkipSingle); } |