Remove obsolete autotest parameters.
Previously, autotests silently ignored the -graphicssystem and -qws parameters so that test-runners did not need to include logic to decide whether to pass those parameters depending on whether a particular test was a GUI test or a non-GUI test. In Qt 5, both of those parameters have been removed from QApplication, so tests don't need to ignore them anymore as they should no longer be supplied to any test. Change-Id: Ic59e38ddfa3303e760645ed1782a211340ce70f2 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
e3640d1bdd
commit
7ac3d7c5c1
@ -1392,16 +1392,6 @@ Q_TESTLIB_EXPORT void qtest_qParseArgs(int argc, char *argv[], bool qml)
|
||||
|
||||
} else if (strcmp(argv[i], "-vb") == 0) {
|
||||
QBenchmarkGlobalData::current->verboseOutput = true;
|
||||
} else if (strcmp(argv[i], "-qws") == 0) {
|
||||
// do nothing
|
||||
} else if (strcmp(argv[i], "-graphicssystem") == 0) {
|
||||
// do nothing
|
||||
if (i + 1 >= argc) {
|
||||
fprintf(stderr, "-graphicssystem needs an extra parameter specifying the graphics system\n");
|
||||
exit(1);
|
||||
} else {
|
||||
++i;
|
||||
}
|
||||
} else if (argv[i][0] == '-') {
|
||||
fprintf(stderr, "Unknown option: '%s'\n\n%s", argv[i], testOptions);
|
||||
if (qml) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user