Use specific locale for cmp_fast_path test

The test was failing in the regular MacOS terminal due to it defaulting
to LC_ALL=C. Best to standardize like the other tests that check for
locale-dependent output.
This commit is contained in:
Gustavo Noronha Silva
2025-12-22 13:03:44 -03:00
parent df90e37566
commit 8997ac06b8
+1
View File
@@ -864,6 +864,7 @@ mod cmp {
let mut cmd = cargo_bin_cmd!("diffutils");
cmd.arg("cmp");
cmd.arg(&a_path).arg(&b_path);
cmd.env("LC_ALL", "en_US");
cmd.assert()
.code(predicate::eq(1))
.failure()