aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarim Pinter <karim.pinter@qt.io>2026-09-17 16:32:43 +0300
committerKarim Pinter <karim.pinter@qt.io>2026-09-21 11:01:30 +0000
commit42a76a2f133dfd817f134980f3db4cd08a268b42 (patch)
tree3bf26dbe2c383c17d5b143c7ea1009b80d75faf9
parent8571a8c022e833721add490ccd0cf05987689520 (diff)
tst_qqmlextensionplugin: skip iidCheck on static builds
iidCheck_data() builds its rows by scanning the QML imports directory for dynamic plugin libraries. In a static Qt build the extension plugins are linked into the application and no such files exist, so the data table ends up empty and the QFETCH in iidCheck() triggers testlib's fatal "no testdata available" assert, aborting the test with SIGABRT. Skip the test function up front on static builds instead. Shared builds keep the current behavior, where an empty imports directory still fails loudly. Fixes: QTBUG-150363 Pick-to: 6.12 Change-Id: I0e45b94f3172f981bf509dee8b5978b6ef5c5e00 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
-rw-r--r--tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp b/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp
index 7ee28dbcf1..1d36b424ec 100644
--- a/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp
+++ b/tests/auto/qml/qqmlextensionplugin/tst_qqmlextensionplugin.cpp
@@ -50,6 +50,9 @@ private Q_SLOTS:
void tst_qqmlextensionplugin::iidCheck_data()
{
+ if (!QLibraryInfo::isSharedBuild())
+ QSKIP("A static Qt build has no dynamic QML extension plugins to check.");
+
QList<QString> files;
// On Android the plugins are located in the APK's libs subdir. They can
// be distinguished by the name, which starts from "libqml_" and ends with