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

qmltest: If an argument is passed to the test that gets stripped then it will cause an assert in QCoreApplication on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.1.1
    • Quick: Other
    • None
    • Windows

    Description

      qmltest: If an argument is passed (such as -widgets) to the test that gets stripped then it will cause an assert in QCoreApplication on Windows due to the fact that number of arguments gets modified and it does not match up with the original number.

      Q_ASSERT(allArguments.size() == origArgc);
      

      is the line in QCoreApplication::arguments() that asserts. Attached is a patch that prevents this from being a problem but this is probably not the correct approach to solve the issue.

      Attachments

        Issue Links

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

          Activity

            People

              aalpert Alan Alpert
              andysh Andy Shaw
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes