Skip to content

Commit f41403f

Browse files
smoeliusrami3l
authored andcommitted
Do not append EXE_SUFFIX in Config::cmd
Previously, `Config::cmd` would always append an `EXE_SUFFIX`. However, this would produce an invalid path if the suffix was already present. Extracted from #4175
1 parent fa44b9b commit f41403f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/mock/clitools.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ impl Config {
537537
I: IntoIterator<Item = A>,
538538
A: AsRef<OsStr>,
539539
{
540-
let exe_path = self.exedir.join(format!("{name}{EXE_SUFFIX}"));
540+
let exe_path = self.exedir.join(name);
541541
let mut cmd = Command::new(exe_path);
542542
cmd.args(args);
543543
cmd.current_dir(&*self.workdir.borrow());

0 commit comments

Comments
 (0)