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

Merge pull request #4247 from tertsdiepraam/rm/add-fifo-test

rm: add test for #4246
This commit is contained in:
Sylvestre Ledru 2022-12-30 12:09:53 +01:00 committed by GitHub
commit a3c76678fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -554,3 +554,19 @@ fn test_prompt_write_protected_no() {
scene.ucmd().arg(file_2).pipe_in("n").succeeds();
assert!(at.file_exists(file_2));
}
#[test]
#[cfg(not(windows))]
fn test_fifo_removal() {
use std::time::Duration;
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;
at.mkfifo("some_fifo");
scene
.ucmd()
.arg("some_fifo")
.timeout(Duration::from_secs(2))
.succeeds();
}