Skip to content

Commit f429ab3

Browse files
committed
compiletest: "fix" FileCheck with --allow-unused-prefixes
The default of --allow-unused-prefixes used to be false, but in LLVM change 87dbdd2 (https://reviews.llvm.org/D95849) the default became true. I'm not quite sure how we could do better here (specifically not providing the CHECK prefix when it's not needed), but this seems to work for now.
1 parent c825bc4 commit f429ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,7 @@ impl<'test> TestCx<'test> {
22932293
// For now, though…
22942294
if let Some(rev) = self.revision {
22952295
let prefixes = format!("CHECK,{}", rev);
2296-
filecheck.args(&["--check-prefixes", &prefixes]);
2296+
filecheck.args(&["--allow-unused-prefixes", "--check-prefixes", &prefixes]);
22972297
}
22982298
self.compose_and_run(filecheck, "", None, None)
22992299
}

0 commit comments

Comments
 (0)