mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests: fix "unresolved import" warnings on Windows
This commit is contained in:
parent
94aeba9854
commit
0140f4f7d0
3 changed files with 9 additions and 3 deletions
|
@ -9,7 +9,9 @@ use regex::Regex;
|
|||
#[cfg(not(windows))]
|
||||
use std::io::Write;
|
||||
|
||||
use crate::common::util::{expected_result, TestScenario};
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
use crate::common::util::expected_result;
|
||||
use crate::common::util::TestScenario;
|
||||
|
||||
const SUB_DIR: &str = "subdir/deeper";
|
||||
const SUB_DEEPER_DIR: &str = "subdir/deeper/deeper_dir";
|
||||
|
|
|
@ -10,9 +10,11 @@
|
|||
extern crate tail;
|
||||
|
||||
use crate::common::random::{AlphanumericNewline, RandomString};
|
||||
#[cfg(unix)]
|
||||
use crate::common::util::expected_result;
|
||||
#[cfg(not(windows))]
|
||||
use crate::common::util::is_ci;
|
||||
use crate::common::util::{expected_result, TestScenario};
|
||||
use crate::common::util::TestScenario;
|
||||
use pretty_assertions::assert_eq;
|
||||
use rand::distributions::Alphanumeric;
|
||||
use rstest::rstest;
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
// * For the full copyright and license information, please view the LICENSE
|
||||
// * file that was distributed with this source code.
|
||||
|
||||
use crate::common::util::{expected_result, is_ci, whoami, TestScenario};
|
||||
#[cfg(unix)]
|
||||
use crate::common::util::expected_result;
|
||||
use crate::common::util::{is_ci, whoami, TestScenario};
|
||||
|
||||
#[test]
|
||||
fn test_invalid_arg() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue