mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 13:11:05 +01:00
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:
@@ -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.";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user