summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2019-01-18 09:09:38 (GMT)
committerTobias Markmann <tm@ayena.de>2019-01-18 09:09:38 (GMT)
commit9b12c9751cf8fd1658dfd948c4d854b0e1407b0d (patch)
tree448c4bfd60e0ed71923c911287bf90c36586c885
parente618ab44aa09d6b69b08b14d43ee9ff2dd6abb0e (diff)
downloadswift-9b12c9751cf8fd1658dfd948c4d854b0e1407b0d.zip
swift-9b12c9751cf8fd1658dfd948c4d854b0e1407b0d.tar.bz2
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
-rw-r--r--QA/Checker/checker.cpp5
1 files changed, 5 insertions, 0 deletions
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 <string>
#include <sstream>
+#include <boost/algorithm/string/predicate.hpp>
+
#include <gtest/gtest.h>
#include <QA/Checker/CppUnitTestResultPrinter.h>
@@ -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);
}