1
Fork 0
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:
Daniel Hofstetter 2023-03-20 16:26:31 +01:00
parent 94aeba9854
commit 0140f4f7d0
3 changed files with 9 additions and 3 deletions

View file

@ -9,7 +9,9 @@ use regex::Regex;
#[cfg(not(windows))] #[cfg(not(windows))]
use std::io::Write; 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_DIR: &str = "subdir/deeper";
const SUB_DEEPER_DIR: &str = "subdir/deeper/deeper_dir"; const SUB_DEEPER_DIR: &str = "subdir/deeper/deeper_dir";

View file

@ -10,9 +10,11 @@
extern crate tail; extern crate tail;
use crate::common::random::{AlphanumericNewline, RandomString}; use crate::common::random::{AlphanumericNewline, RandomString};
#[cfg(unix)]
use crate::common::util::expected_result;
#[cfg(not(windows))] #[cfg(not(windows))]
use crate::common::util::is_ci; use crate::common::util::is_ci;
use crate::common::util::{expected_result, TestScenario}; use crate::common::util::TestScenario;
use pretty_assertions::assert_eq; use pretty_assertions::assert_eq;
use rand::distributions::Alphanumeric; use rand::distributions::Alphanumeric;
use rstest::rstest; use rstest::rstest;

View file

@ -3,7 +3,9 @@
// * 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.
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] #[test]
fn test_invalid_arg() { fn test_invalid_arg() {