Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
6.5.0
-
None
-
efc852b0e (dev), 8296557d8 (6.5.0), 58213e56d (6.5), 6ffb1c3bf (dev), fbe1a265a (dev), 4680317ca (dev), df040fb11 (dev), 412e08106 (dev), a72dacce2 (dev), 2bbc0bda3 (dev), 45c8ab114 (6.8), 25f575e85 (dev), 79507816f (6.8), e4549375c (6.8), c53a9d9ff (6.8)
Description
Currently tests added by functions like qt_internal_add_test / manual_test, etc don't have finalizers executed for them in most cases.
That is not the case for projects that use the public qt_add_executable function.
This causes issues for tests that depend on plugins being auto-linked, or any other finalizer behavior.
Currently, the qt_add_executable finalizers are executed for internal tests on iOS only, which was implemented for QTBUG-104754.
It wasn't enabled for all platforms because webassembly has some custom finalizers running for tests, and there might be duplicate executions if we just enabled the regular finalizers too.
There might also be issues with qml auto-linking on non-cross compile targets, due to qmlimportscanner not being available.
All of these concerns need to be reconciled and unified.
Attachments
Issue Links
- relates to
-
QTBUG-93625 qt_internal_add_test doesn't call qt_import_qml_plugins
- Closed
-
QTBUG-104754 manual tests that use qt_internal_add_manual_test don't run on iOS
- Closed
- resulted in
-
QTBUG-131141 Target finalizers are not run for qt_internal_add_executable/app/tool
- Reported