Skip to content

Commit 066ae1b

Browse files
committed
uutests: remove duplicated declarations
1 parent 8be432e commit 066ae1b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tests/test_util_name.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,6 @@ use uutests::util::TestScenario;
77
#[cfg(unix)]
88
use std::os::unix::fs::symlink as symlink_file;
99

10-
use std::env;
11-
pub const TESTS_BINARY: &str = env!("CARGO_BIN_EXE_coreutils");
12-
13-
// Set the environment variable for any tests
14-
15-
// Use the ctor attribute to run this function before any tests
16-
#[ctor::ctor]
17-
fn init() {
18-
// No need for unsafe here
19-
unsafe {
20-
std::env::set_var("UUTESTS_BINARY_PATH", TESTS_BINARY);
21-
}
22-
// Print for debugging
23-
eprintln!("Setting UUTESTS_BINARY_PATH={}", TESTS_BINARY);
24-
}
25-
2610
#[test]
2711
#[cfg(feature = "ls")]
2812
fn execution_phrase_double() {

0 commit comments

Comments
 (0)