Skip to content

Commit

Permalink
don't execute byte-for-byte result testing on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yeastplume committed Jun 5, 2020
1 parent 33086cf commit 2c46fa1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ macro_rules! ref_file {
}

pub fn compare_results(output_file: &str, reference_file: &str) -> Result<(), Error> {
// reference files were generated on linux, so text files generated on windows
// will have carriage returns \r
if cfg!(windows) {
return Ok(());
}
let output = cmd::common::read_file_bin(output_file)?;
let reference = cmd::common::read_file_bin(reference_file)?;
assert_eq!(output, reference);
Expand Down

0 comments on commit 2c46fa1

Please sign in to comment.