diff --git a/tests/common/util.rs b/tests/common/util.rs index 7ac373c8b..ed6dbc3a3 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -18,9 +18,9 @@ use std::thread::sleep; use std::time::Duration; #[cfg(windows)] -static PROGNAME: &str = "uutils.exe"; +static PROGNAME: &str = concat!(env!("CARGO_PKG_NAME"), ".exe"); #[cfg(not(windows))] -static PROGNAME: &str = "uutils"; +static PROGNAME: &str = env!("CARGO_PKG_NAME"); static TESTS_DIR: &str = "tests"; static FIXTURES_DIR: &str = "fixtures";