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

Qmake system test function always returns success in Qt Creator

XMLWordPrintable

    • Windows

      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".

        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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes