diff --git a/tests/tests.rs b/tests/tests.rs index a4eaaacff..90d7c6e55 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -3,7 +3,6 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -// Then override the macro with your constant use std::env; pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils"); @@ -12,6 +11,7 @@ pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils"); #[ctor::ctor] fn init() { unsafe { + // Necessary for uutests to be able to find the binary std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY); } }