touch: extent a test for many device files

This commit is contained in:
oech3
2026-01-12 20:15:22 +09:00
parent 33f8cac4df
commit d51d2faa0e
+4 -2
View File
@@ -1055,7 +1055,9 @@ fn test_touch_non_utf8_paths() {
#[test]
#[cfg(target_os = "linux")]
fn test_touch_dev_full() {
fn test_touch_device_files() {
let (_, mut ucmd) = at_and_ucmd!();
ucmd.args(&["/dev/full"]).succeeds().no_output();
ucmd.args(&["/dev/null", "/dev/zero", "/dev/full", "/dev/random"])
.succeeds()
.no_output();
}