Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23940

Qmake system test function always returns success in Qt Creator

    XMLWordPrintable

Details

    • Windows

    Description

      The "system" test function always returns success when I run qmake through Qt Creator. The same issue does not exist when I run qmake from a terminal.

      The easiest way to demonstrate is to put this in a qmake file. It should always print the message "false".

      system(exit /b 1) {
        message("true")
      }
      else {
        message("false")
      }
      

      If I run qmake from a terminal I get the expected "Project MESSAGE: false".

      If I run qmake in Qt Creator I get "Project MESSAGE: true".

      Attachments

        1. about_window.png
          about_window.png
          16 kB
        2. bug-demo.zip
          0.6 kB
        3. code_model.png
          code_model.png
          3 kB

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              dismith2 Dan Smith
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes