Fix toolchain file_test_base multi-file integration. (#3780)

test_args will never contain %s; switch to filtering arguments, and
handle the edge cases.
This commit is contained in:
Jon Ross-Perkins
2024-03-14 21:00:06 +00:00
committed by GitHub
parent 1d720dc001
commit 28d76e6164
3 changed files with 18 additions and 14 deletions
+3 -2
View File
@@ -73,11 +73,12 @@ static auto CompareFailPrefix(llvm::StringRef filename, bool success) -> void {
if (success) {
EXPECT_FALSE(filename.starts_with("fail_"))
<< "`" << filename
<< "` succeeded; if this is correct, add a `fail_` prefix.";
<< "` succeeded; if success is expected, remove the `fail_` "
"prefix.";
} else {
EXPECT_TRUE(filename.starts_with("fail_"))
<< "`" << filename
<< "` failed; if this is correct, remove the `fail_` prefix.";
<< "` failed; if failure is expected, add the `fail_` prefix.";
}
}