From 0532ea4727d1da95adc6ab97e5e684da07139d17 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 14 Aug 2025 14:18:15 +0200 Subject: [PATCH] split: adjust the test for windows --- tests/by-util/test_split.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/by-util/test_split.rs b/tests/by-util/test_split.rs index 627683172..f710e1442 100644 --- a/tests/by-util/test_split.rs +++ b/tests/by-util/test_split.rs @@ -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