Skip to content

Commit 618f93a

Browse files
authored
Merge pull request #10199 from oech3/touch-tests
touch: extent a test for many device files
2 parents 7851f70 + d51d2fa commit 618f93a

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)