Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.1.1
-
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
- is replaced by
-
QTBUG-36466 Windows/QmlTest: Using the -input argument for tests causes an assert
- Closed
- relates to
-
QTBUG-30330 Windows: assertion if you pass QApplication arguments that are not exactly those retrieved by GetCommandLine()
- Closed