From 7ac3d7c5c1738a3c99f6e9b26a3f79e424ca15f1 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Tue, 6 Dec 2011 10:48:52 +1000 Subject: 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 --- src/testlib/qtestcase.cpp | 10 ---------- 1 file changed, 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) { -- cgit v1.2.3