================ @@ -316,6 +318,52 @@ TEST(ToolChainTest, VFSSolarisMultiGCCInstallation) { } } +MATCHER_P(jobHasArgs, Substr, "") { + const driver::Command &C = arg; + std::string Args = ""; + llvm::ListSeparator Sep(" "); + for (const char *Arg : C.getArguments()) { + Args += Sep; + Args += Arg; + } + if (is_style_windows(llvm::sys::path::Style::native)) + std::replace(Args.begin(), Args.end(), '\\', '/'); + if (llvm::StringRef(Args).contains(Substr)) + return true; + *result_listener << "whose args are '" << Args << "'"; ---------------- smeenai wrote:
Cool, sounds good. https://github.com/llvm/llvm-project/pull/66947 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits