Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions tests/by-util/test_tail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ use std::thread::sleep;
#[cfg(unix)]
use std::time::Duration;

#[cfg(target_os = "linux")]
pub static BACKEND: &str = "inotify";
// #[cfg(all(unix, not(target_os = "linux")))]
// pub static BACKEND: &str = "kqueue";

static FOOBAR_TXT: &str = "foobar.txt";
static FOOBAR_2_TXT: &str = "foobar2.txt";
static FOOBAR_WITH_NULL_TXT: &str = "foobar_with_null.txt";
Expand Down Expand Up @@ -1446,6 +1441,8 @@ fn test_retry9() {
// Ensure that inotify will switch to polling mode if directory
// of the watched file was removed and recreated.

use tail::text::BACKEND;

let ts = TestScenario::new(util_name!());
let at = &ts.fixtures;
let watched_file = std::path::Path::new("watched_file");
Expand Down
4 changes: 1 addition & 3 deletions tests/by-util/test_wc.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#[cfg(all(unix, not(target_os = "macos")))]
use pretty_assertions::assert_ne;

use crate::common::util::*;

// spell-checker:ignore (flags) lwmcL clmwL ; (path) bogusfile emptyfile manyemptylines moby notrailingnewline onelongemptyline onelongword weirdchars
Expand Down Expand Up @@ -404,6 +401,7 @@ fn test_read_from_nonexistent_file() {
#[test]
#[cfg(any(target_os = "linux", target_os = "android"))]
fn test_files_from_pseudo_filesystem() {
use pretty_assertions::assert_ne;
let result = new_ucmd!().arg("-c").arg("/proc/cpuinfo").succeeds();
assert_ne!(result.stdout_str(), "0 /proc/cpuinfo\n");
}
Expand Down