mirror of
https://github.com/uutils/coreutils.git
synced 2025-07-07 21:45:01 +00:00
uutests: fix the doc
This commit is contained in:
parent
bb8c043a76
commit
8be432e6ef
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,6 @@
|
||||||
// For the full copyright and license information, please view the LICENSE
|
// For the full copyright and license information, please view the LICENSE
|
||||||
// file that was distributed with this source code.
|
// file that was distributed with this source code.
|
||||||
|
|
||||||
// Then override the macro with your constant
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils");
|
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]
|
#[ctor::ctor]
|
||||||
fn init() {
|
fn init() {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
// Necessary for uutests to be able to find the binary
|
||||||
std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
|
std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue