Skip to content

Commit 40aaeb6

Browse files
committed
Use C 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.
1 parent df90e37 commit 40aaeb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,10 +864,11 @@ mod cmp {
864864
let mut cmd = cargo_bin_cmd!("diffutils");
865865
cmd.arg("cmp");
866866
cmd.arg(&a_path).arg(&b_path);
867+
cmd.env("LC_ALL", "C");
867868
cmd.assert()
868869
.code(predicate::eq(1))
869870
.failure()
870-
.stdout(predicate::str::ends_with(" differ: byte 24577, line 4\n"));
871+
.stdout(predicate::str::ends_with(" differ: char 24577, line 4\n"));
871872

872873
Ok(())
873874
}

0 commit comments

Comments
 (0)