summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2022-02-23 16:19:33 +0200
committerPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2022-02-25 14:52:34 +0200
commit81c6f224c4f05db099d4690f2bc36455e1b943b4 (patch)
tree9a6aff909bb2d79f5d29c71636d11a1acbe8535a /tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp
parent3b82c2d16780c4474ebdf7064f406dc266eeba58 (diff)
Fix test when accessing patched plugin too fast
At least one OS (QNX) can't dlopen() a library that is still open for writing elsewhere Pick-to: 6.2 6.3 Fixes: QTBUG-101020 Change-Id: I84ca709a65fc824ec4b3e3f1ea03704bf1cc0414 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp')
-rw-r--r--tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp b/tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp
index ddc9ff7e7c..6db2a80abc 100644
--- a/tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp
+++ b/tests/auto/corelib/plugin/qplugin/tst_qplugin.cpp
@@ -234,6 +234,11 @@ void tst_QPlugin::scanInvalidPlugin()
memset(data + offset + metadata.size(), 0, 512 - metadata.size());
}
+#if defined(Q_OS_QNX)
+ // On QNX plugin access is still too early
+ QTest::qSleep(1000);
+#endif
+
// now try to load this
QFETCH(bool, loads);
QFETCH(QString, errMsg);