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

tests: fix Freebsd test failures

This commit is contained in:
Jan Scheer 2022-08-05 08:04:25 +02:00
parent fa47af73d0
commit 0555745052
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828
2 changed files with 3 additions and 8 deletions

View file

@ -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";
@ -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");