diff --git a/tests/by-util/test_touch.rs b/tests/by-util/test_touch.rs index b4a19da80..69e989fbb 100644 --- a/tests/by-util/test_touch.rs +++ b/tests/by-util/test_touch.rs @@ -477,7 +477,8 @@ fn test_touch_reference_dangling() { dangling_symlink.to_str().unwrap(), "some_file", ]) - .fails(); + .fails() + .stderr_contains("touch: failed to get attributes of"); } #[test]