Skip to content

Commit

Permalink
Merge pull request #282 from alessandrod/master
Browse files Browse the repository at this point in the history
Add support for using revisions with FileCheck
  • Loading branch information
Manishearth authored Nov 6, 2023
2 parents 3997d91 + 2752c9f commit 6e41827
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1891,10 +1891,18 @@ actual:\n\
} else {
output
};
let prefixes = if let Some(rev) = self.revision {
format!("CHECK,{}", rev)
} else {
"CHECK".to_string()
};
let mut filecheck = Command::new(self.config.llvm_filecheck.as_ref().unwrap());
filecheck
.arg("--input-file")
.arg(output)
.arg("--allow-unused-prefixes")
.arg("--check-prefixes")
.arg(&prefixes)
.arg(&self.testpaths.file);
let proc_res = self.compose_and_run(filecheck, "", None, None);
if !proc_res.status.success() {
Expand Down

0 comments on commit 6e41827

Please # to comment.