summaryrefslogtreecommitdiffstats
path: root/tests/auto/texturemanager/tst_texturemanagertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/texturemanager/tst_texturemanagertest.cpp')
-rw-r--r--tests/auto/texturemanager/tst_texturemanagertest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/texturemanager/tst_texturemanagertest.cpp b/tests/auto/texturemanager/tst_texturemanagertest.cpp
index 9805478..4fb8d49 100644
--- a/tests/auto/texturemanager/tst_texturemanagertest.cpp
+++ b/tests/auto/texturemanager/tst_texturemanagertest.cpp
@@ -292,6 +292,9 @@ void TextureManagerTest::uploadAfterRequestUpload()
QVERIFY(sync.isReady());
QVERIFY(async.isReady());
+
+ QTest::qWait(100); // If the signal is emitted asynchronously, we need to wait for it...
+
QCOMPARE(status, int(QSGTexture::Ready));
QVERIFY(async.texture() == sync.texture());