Skip to content

Commit 702246d

Browse files
committed
ctest: Add translation of Rust types.
1 parent 05fd41c commit 702246d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ctest-next/tests/basic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ fn default_generator(opt_level: u8, header: &str) -> Result<(TestGenerator, temp
3232
/// If the contents do not match and LIBCBLESS is set, overwrite the
3333
/// test file with the content of the generated file.
3434
fn bless_equal(new_file: impl AsRef<Path>, old_file: impl AsRef<Path>) -> Result<bool> {
35-
let new_content = fs::read_to_string(&new_file)?;
36-
let old_content = fs::read_to_string(&old_file)?;
35+
let new_content = fs::read_to_string(&new_file)?.replace("\r\n", "\n");
36+
let old_content = fs::read_to_string(&old_file)?.replace("\r\n", "\n");
3737

3838
let equal = new_content == old_content;
3939
if env::var("LIBCBLESS").is_ok() && !equal {

0 commit comments

Comments
 (0)