summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2020-09-25 14:07:25 +0300
committerTomi Korpipaa <tomi.korpipaa@qt.io>2020-09-28 08:57:11 +0300
commit03fbc3affe36cec1f12accc3971f24e6291747c6 (patch)
treeab5240e8d20d9541499be7dceabefbdc809ccb34
parent34db1fb59ca477af95311cb8249ee90b1e471184 (diff)
Fix signal autotest for Linux
Change-Id: I03537c60337f8cdb4183ca8e50e9f68d7a7b8148 Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io> Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
-rw-r--r--tests/auto/studio3d/q3dssurfaceviewer/tst_q3dssurfaceviewer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/studio3d/q3dssurfaceviewer/tst_q3dssurfaceviewer.cpp b/tests/auto/studio3d/q3dssurfaceviewer/tst_q3dssurfaceviewer.cpp
index 6133577..f3b1adf 100644
--- a/tests/auto/studio3d/q3dssurfaceviewer/tst_q3dssurfaceviewer.cpp
+++ b/tests/auto/studio3d/q3dssurfaceviewer/tst_q3dssurfaceviewer.cpp
@@ -388,6 +388,9 @@ void tst_Q3DSSurfaceViewer::testActivateActions()
QVERIFY(spy.isValid());
+ // Wait a bit to prevent grabbing the first image too soon
+ QTest::qWait(100);
+
// This presentations sends custom signals at 1000ms and at 3000ms.
// At same times it also changes scene color using activate actions.
QCOMPARE(spy.count(), 0);