Skip to content

Commit 93f5971

Browse files
committed
fix some errors
1 parent 926067c commit 93f5971

File tree

6 files changed

+5
-2
lines changed

6 files changed

+5
-2
lines changed

tests/by-util/test_df.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
use std::collections::HashSet;
1414

15+
#[cfg(not(any(target_os = "freebsd", target_os = "windows")))]
1516
use uu_tests_common::at_and_ucmd;
1617
use uu_tests_common::new_ucmd;
1718
use uu_tests_common::util::TestScenario;

tests/by-util/test_du.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use regex::Regex;
99

1010
use uu_tests_common::at_and_ucmd;
1111
use uu_tests_common::new_ucmd;
12+
#[cfg(any(target_os = "linux", target_os = "android"))]
1213
use uu_tests_common::unwrap_or_return;
1314
#[cfg(not(target_os = "windows"))]
1415
use uu_tests_common::util::expected_result;

tests/by-util/test_mkdir.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use libc::mode_t;
1212
#[cfg(not(windows))]
1313
use std::os::unix::fs::PermissionsExt;
14+
#[cfg(not(windows))]
1415
use uu_tests_common::at_and_ucmd;
1516
use uu_tests_common::new_ucmd;
1617
use uu_tests_common::util::TestScenario;

tests/by-util/test_more.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
55
use std::io::IsTerminal;
6+
#[cfg(target_family = "unix")]
67
use uu_tests_common::at_and_ucmd;
78
use uu_tests_common::new_ucmd;
89
use uu_tests_common::util::TestScenario;

tests/by-util/test_tail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ use tail::text;
4242
use uu_tests_common::at_and_ucmd;
4343
use uu_tests_common::new_ucmd;
4444
use uu_tests_common::random::{AlphanumericNewline, RandomizedString};
45-
use uu_tests_common::unwrap_or_return;
4645
#[cfg(unix)]
46+
use uu_tests_common::unwrap_or_return;
4747
use uu_tests_common::util::expected_result;
4848
#[cfg(unix)]
4949
#[cfg(not(windows))]

tests/by-util/test_whoami.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use uu_tests_common::new_ucmd;
88
use uu_tests_common::unwrap_or_return;
99
#[cfg(unix)]
1010
use uu_tests_common::util::expected_result;
11-
#[cfg(unix)]
1211
use uu_tests_common::util::{is_ci, whoami, TestScenario};
1312
use uu_tests_common::util_name;
1413

0 commit comments

Comments
 (0)