From cae3c016afa72b4d6285d1efefddca4700239eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Nilsen?= Date: Mon, 15 Feb 2010 10:53:06 +0100 Subject: Make it possible to run benchmarks with the "-graphicssystem" switch. Problem was that the "-graphicssystem" switch were not recognized as a valid benchmark option so the test failed to execute with the following warning: "Unknown option: "-graphicssystem"". We have to pass it through to QApplication, in the same fashion as we do for "-qws". Reviewed-by: jasplin --- src/testlib/qtestcase.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index ecdcca8..a44ae06 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -1113,6 +1113,14 @@ static void qParseArgs(int argc, char *argv[]) #endif } else if (strcmp(argv[i], "-qws") == 0) { // do nothing + } else if (strcmp(argv[i], "-graphicssystem") == 0) { + // do nothing + if (i + 1 >= argc) { + printf("-graphicssystem needs an extra parameter specifying the graphics system\n"); + exit(1); + } else { + ++i; + } } else if (argv[i][0] == '-') { printf("Unknown option: '%s'\n\n%s", argv[i], testOptions); exit(1); -- cgit v0.12