Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
5.0.0, 5.3.0 Beta1
-
None
Description
On mac, if a testcase adds both "qmltestcase" and "testcase" to CONFIG, and qmltestcase.prf is loaded after testcase.prf, then the testcase is not built as app bundle but `make check' attempts to run it as if it is.
The reason is that qmltestcase.prf contains this:
macx: CONFIG -= app_bundle
... and testcase.prf checks contains(CONFIG,app_bundle) to determine the correct command to run.
Therefore changing app_bundle after loading testcase.prf will break the "check" target.
Workarounds are either doing CONFIG -= app_bundle in the affected test .pro file, or avoiding CONFIG += testcase and only using CONFIG += qmltestcase for qml tests.
I'm not sure why qmltestcase.prf is doing CONFIG -= app_bundle. It's possible that should be removed. If not, the load order needs to be enforced somehow.
Attachments
Issue Links
- relates to
-
QTBUG-45211 [iOS] QtQuickTest project compilation will fail if qmltestcase CONFIG parameter is defined
- Closed