touch: adapt expected error message in test

This commit is contained in:
Daniel Hofstetter
2025-09-10 10:20:04 +02:00
parent bb5d73e1b8
commit 74ee8fb1c1
+3 -3
View File
@@ -765,9 +765,9 @@ fn test_touch_trailing_slash() {
fn test_touch_trailing_slash_windows() {
let (_at, mut ucmd) = at_and_ucmd!();
let file = "no-file/";
ucmd.args(&[file]).fails().stderr_only(format!(
"touch: cannot touch '{file}': The filename, directory name, or volume label syntax is incorrect.\n"
));
ucmd.args(&[file])
.fails()
.stderr_contains(format!("touch: cannot touch '{file}'"));
}
#[test]