split: adjust the test for windows

This commit is contained in:
Sylvestre Ledru
2025-08-14 14:18:15 +02:00
parent c8aa0d256f
commit 0532ea4727
+1 -3
View File
@@ -1747,9 +1747,7 @@ fn test_split_non_utf8_argument_windows() {
let opt_value = [0x0066, 0x006f, 0xD800, 0x006f];
let opt_value = OsString::from_wide(&opt_value[..]);
let name = OsString::from(name);
ucmd.args(&[opt, opt_value, name])
.fails()
.stderr_contains("error: invalid UTF-8 was detected in one or more arguments");
ucmd.args(&[opt, opt_value, name]).succeeds();
}
// Test '--separator' / '-t' option following GNU tests example