1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #8314 from bvinc/tail_zero

tail: fix tailing /dev/zero
This commit is contained in:
Daniel Hofstetter 2025-07-07 10:30:34 +02:00 committed by GitHub
commit b9a790b476
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 23 deletions

View file

@ -4923,3 +4923,12 @@ fn test_failed_write_is_reported() {
.fails()
.stderr_is("tail: No space left on device\n");
}
#[test]
#[cfg(target_os = "linux")]
fn test_dev_zero() {
new_ucmd!()
.args(&["-c", "1", "/dev/zero"])
.succeeds()
.stdout_only("\0");
}