提交 6b1f0c86 编写于 作者: T Tim Neumann 提交者: GitHub

Rollup merge of #44630 - RalfJung:compiletest, r=Mark-Simulacrum

compiletest: print the correct basename of the src dir

See <https://github.com/laumann/compiletest-rs/issues/76>.

Fixes #40712
......@@ -517,7 +517,7 @@ pub fn make_test_name(config: &Config, testpaths: &TestPaths) -> test::TestName
//
// run-pass/foo/bar/baz.rs
let path =
PathBuf::from(config.mode.to_string())
PathBuf::from(config.src_base.file_name().unwrap())
.join(&testpaths.relative_dir)
.join(&testpaths.file.file_name().unwrap());
test::DynTestName(format!("[{}] {}", config.mode, path.display()))
......
......@@ -2174,8 +2174,6 @@ fn aggressive_rm_rf(&self, path: &Path) -> io::Result<()> {
}
fn run_ui_test(&self) {
println!("ui: {}", self.testpaths.file.display());
let proc_res = self.compile_test();
let expected_stderr_path = self.expected_output_path("stderr");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册