diff --git a/src/test/mock/clitools.rs b/src/test/mock/clitools.rs index 80f2095126..fbd8cb3c78 100644 --- a/src/test/mock/clitools.rs +++ b/src/test/mock/clitools.rs @@ -537,7 +537,7 @@ impl Config { I: IntoIterator, A: AsRef, { - let exe_path = self.exedir.join(format!("{name}{EXE_SUFFIX}")); + let exe_path = self.exedir.join(name); let mut cmd = Command::new(exe_path); cmd.args(args); cmd.current_dir(&*self.workdir.borrow());