diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-12-06 10:48:52 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-06 05:04:25 +0100 |
commit | 7ac3d7c5c1738a3c99f6e9b26a3f79e424ca15f1 (patch) | |
tree | 411ea7d32e24c6cec9079d48a79900a201b8eadf /src | |
parent | e3640d1bddb7c2e820d770b2f2f5557cc354b7e9 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/testlib/qtestcase.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index 8a8298c022..742161be04 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -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) { |