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

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

      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.

        1. qmltest.diff
          0.6 kB
          Andy Shaw
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes