Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-25271

`make check' breaks on mac for testcases with CONFIG+=qmltestcase and CONFIG+=testcase

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.0.0, 5.3.0 Beta1
    • Testing: QuickTest
    • None
    • macOS

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              rmcgover Rohan McGovern (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes