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

QProcess::execute returns 0 if executable not found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.5.3
    • Core: I/O
    • None
    • 92b6ca830f279cfa9d37946f1fd72843b24e704b

    Description

      QProcess::execute("doesnotexist") returns 0, although one would expect that a non-existent executable should result in an error condition - QProcess::FailedToStart, in particular. Hence, returning 0 seems inconsistent. A non-zero return value would seem more appropriate?!

      There's a similar report here:
      http://bugreports.qt.nokia.com/browse/QTBUG-230

      The problem is also described here:
      http://jira.codehaus.org/browse/IZPACK-20

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            dfranke Daniel Franke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes