Skip to content

Commit d51d2fa

Browse files
author
oech3
committed
touch: extent a test for many device files
1 parent 33f8cac commit d51d2fa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/by-util/test_touch.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,9 @@ fn test_touch_non_utf8_paths() {
10551055

10561056
#[test]
10571057
#[cfg(target_os = "linux")]
1058-
fn test_touch_dev_full() {
1058+
fn test_touch_device_files() {
10591059
let (_, mut ucmd) = at_and_ucmd!();
1060-
ucmd.args(&["/dev/full"]).succeeds().no_output();
1060+
ucmd.args(&["/dev/null", "/dev/zero", "/dev/full", "/dev/random"])
1061+
.succeeds()
1062+
.no_output();
10611063
}

0 commit comments

Comments
 (0)