Skip to content

Commit 474c717

Browse files
committed
compiletest: print the correct basename of the src dir
1 parent d86a7f7 commit 474c717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ pub fn make_test_name(config: &Config, testpaths: &TestPaths) -> test::TestName
517517
//
518518
// run-pass/foo/bar/baz.rs
519519
let path =
520-
PathBuf::from(config.mode.to_string())
520+
PathBuf::from(config.src_base.file_name().unwrap())
521521
.join(&testpaths.relative_dir)
522522
.join(&testpaths.file.file_name().unwrap());
523523
test::DynTestName(format!("[{}] {}", config.mode, path.display()))

0 commit comments

Comments
 (0)