From 039638de0ed09d30d0560e0b91a448dc7e250934 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sun, 24 May 2020 18:46:16 -0500 Subject: [PATCH] tests ~ use CARGO_PKG_NAME as name of binary used for testing --- tests/common/util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";