From: Ralf Jung Date: Sat, 16 Sep 2017 11:02:31 +0000 (+0200) Subject: compiletest: print the correct basename of the src dir X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=474c717644c13a86c5bd40a8c3fd6f0e1519f126;p=rust.git compiletest: print the correct basename of the src dir --- diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index 15216f52d91..26c447d01d3 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -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()))