mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
cp: Support copying FIFOs with -r (#3032)
This commit is contained in:
parent
618a268f61
commit
eace4bc907
2 changed files with 51 additions and 7 deletions
|
@ -1463,6 +1463,20 @@ fn test_cp_archive_on_nonexistent_file() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn test_cp_fifo() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
at.mkfifo("fifo");
|
||||
ucmd.arg("-r")
|
||||
.arg("fifo")
|
||||
.arg("fifo2")
|
||||
.succeeds()
|
||||
.no_stderr()
|
||||
.no_stdout();
|
||||
assert!(at.is_fifo("fifo2"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_dir_recursive_copy() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue