1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

tests ~ use CARGO_PKG_NAME as name of binary used for testing

This commit is contained in:
Roy Ivy III 2020-05-24 18:46:16 -05:00
parent 1f0864f689
commit 039638de0e

View file

@ -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";