1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tests: fix unused imports warnings on Windows

This commit is contained in:
Daniel Hofstetter 2023-03-20 16:06:56 +01:00
parent 6988eb7ec6
commit 94aeba9854
3 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,8 @@
// spell-checker:ignore NOFILE // spell-checker:ignore NOFILE
use crate::common::util::{vec_of_size, TestScenario}; #[cfg(not(windows))]
use crate::common::util::vec_of_size;
use crate::common::util::TestScenario;
#[cfg(any(target_os = "linux", target_os = "android"))] #[cfg(any(target_os = "linux", target_os = "android"))]
use rlimit::Resource; use rlimit::Resource;
use std::fs::OpenOptions; use std::fs::OpenOptions;

View file

@ -1,6 +1,8 @@
// spell-checker:ignore fname, tname, fpath, specfile, testfile, unspec, ifile, ofile, outfile, fullblock, urand, fileio, atoe, atoibm, availible, behaviour, bmax, bremain, btotal, cflags, creat, ctable, ctty, datastructures, doesnt, etoa, fileout, fname, gnudd, iconvflags, iseek, nocache, noctty, noerror, nofollow, nolinks, nonblock, oconvflags, oseek, outfile, parseargs, rlen, rmax, rposition, rremain, rsofar, rstat, sigusr, sigval, wlen, wstat abcdefghijklm abcdefghi nabcde nabcdefg abcdefg // spell-checker:ignore fname, tname, fpath, specfile, testfile, unspec, ifile, ofile, outfile, fullblock, urand, fileio, atoe, atoibm, availible, behaviour, bmax, bremain, btotal, cflags, creat, ctable, ctty, datastructures, doesnt, etoa, fileout, fname, gnudd, iconvflags, iseek, nocache, noctty, noerror, nofollow, nolinks, nonblock, oconvflags, oseek, outfile, parseargs, rlen, rmax, rposition, rremain, rsofar, rstat, sigusr, sigval, wlen, wstat abcdefghijklm abcdefghi nabcde nabcdefg abcdefg
use crate::common::util::{TestScenario, UCommand, TESTS_BINARY}; use crate::common::util::TestScenario;
#[cfg(not(windows))]
use crate::common::util::{UCommand, TESTS_BINARY};
use regex::Regex; use regex::Regex;

View file

@ -10,7 +10,9 @@
extern crate tail; extern crate tail;
use crate::common::random::{AlphanumericNewline, RandomString}; use crate::common::random::{AlphanumericNewline, RandomString};
use crate::common::util::{expected_result, is_ci, TestScenario}; #[cfg(not(windows))]
use crate::common::util::is_ci;
use crate::common::util::{expected_result, 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;