From d51d2faa0eda814df6636cb999f46f46a7878e94 Mon Sep 17 00:00:00 2001 From: oech3 <> Date: Mon, 12 Jan 2026 20:15:22 +0900 Subject: [PATCH] touch: extent a test for many device files --- tests/by-util/test_touch.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/by-util/test_touch.rs b/tests/by-util/test_touch.rs index 25e6b301f..29425d6aa 100644 --- a/tests/by-util/test_touch.rs +++ b/tests/by-util/test_touch.rs @@ -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(); }