Merge pull request #8599 from cakebaker/touch_adapt_test_on_windows

touch: adapt expected error message in test
This commit is contained in:
Sylvestre Ledru 2025-09-10 10:50:38 +02:00 committed by GitHub
commit 96400de5f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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]