Skip to content

Commit 2a71007

Browse files
committed
show which test the rmake process belongs to
1 parent 3b463bd commit 2a71007

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/tools/compiletest/src/runtest.rs

+14-1
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,20 @@ impl<'test> TestCx<'test> {
18361836
return;
18371837
}
18381838

1839-
let proc_name = Path::new(proc_name).file_name().unwrap().to_string_lossy();
1839+
let path = Path::new(proc_name);
1840+
let proc_name = if path.file_stem() == Some(OsStr::new("rmake")) {
1841+
OsString::from_iter(
1842+
path.parent()
1843+
.unwrap()
1844+
.file_name()
1845+
.into_iter()
1846+
.chain(Some(OsStr::new("/")))
1847+
.chain(path.file_name()),
1848+
)
1849+
} else {
1850+
path.file_name().unwrap().into()
1851+
};
1852+
let proc_name = proc_name.to_string_lossy();
18401853
eprintln!("------{proc_name} stdout------------------------------");
18411854
eprintln!("{}", out);
18421855
eprintln!("------{proc_name} stderr------------------------------");

0 commit comments

Comments
 (0)