From 9b12c9751cf8fd1658dfd948c4d854b0e1407b0d Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Fri, 18 Jan 2019 10:09:38 +0100 Subject: Have checker tool not use '--.*' arguments as test names Without this you could not pass through Google Test flags down, because they would be used as CppUnit test names and exit the tool early as the test do not exit. Test-Information: Verified that flags are passed along. This allows to filter specific Google Test test cases. Running checker without parameters still works. Tested that things build on Debian 9.6. Change-Id: I4d4b97a84e2baf81a25cc2f9641c6e49594c0044 diff --git a/QA/Checker/checker.cpp b/QA/Checker/checker.cpp index 3cc7713..f4ec6f1 100644 --- a/QA/Checker/checker.cpp +++ b/QA/Checker/checker.cpp @@ -9,6 +9,8 @@ #include #include +#include + #include #include @@ -43,6 +45,9 @@ int main(int argc, char* argv[]) { else if (param == "--debug") { Swift::Log::setLogLevel(Swift::Log::debug); } + else if (boost::starts_with(param, "--")) { + continue; + } else { testsToRun.push_back(param); } -- cgit v0.10.2-6-g49f6