Test: the non-UTF-8 output-name probe test doesn't run on macOS (#6913)

output_probe_paths_preserve_non_utf8_names creates files named with bytes that aren't UTF-8.
APFS keeps only UTF-8 file names, so on macOS creating the probe fails before the check runs and
the test fails; no output can have such a name there. It runs on the other unix systems as before.
Found running the automation tests on hosted macOS.
This commit is contained in:
FredApps authored and GitHub committed 2026-11-10 20:57:08 +01:00
1 parent d47adeff89
commit b10f85262c
1 file changed
+3 -1
+3 -1
View File
@@ -366,7 +366,9 @@ mod tests {
assert_eq!(std::fs::read_dir(dir.path()).unwrap().count(), 0);
}
#[cfg(unix)]
// Not on macOS: APFS keeps only UTF-8 file names, so no output there can have such a name, and
// creating the probe fails before the check runs.
#[cfg(all(unix, not(target_os = "macos")))]
#[test]
fn output_probe_paths_preserve_non_utf8_names() {
use std::os::unix::ffi::OsStringExt;