cranelift-filetests: tell when a run test is skipped (fixes #1558);

This commit is contained in:
Benjamin Bouvier
2020-06-18 12:21:19 +02:00
committed by Andrew Brown
parent f84903fa43
commit 4f6a002f70
3 changed files with 17 additions and 8 deletions

View File

@@ -75,6 +75,7 @@ pub fn run(path: &Path, passes: Option<&[String]>, target: Option<&str>) -> Test
Some(t) => t,
};
let file_path = path.to_string_lossy();
for (func, details) in testfile.functions {
let mut context = Context {
preamble_comments: &testfile.preamble_comments,
@@ -82,6 +83,7 @@ pub fn run(path: &Path, passes: Option<&[String]>, target: Option<&str>) -> Test
verified: false,
flags,
isa: None,
file_path: file_path.as_ref(),
};
for tuple in &tuples {