Skip to content

Commit

Permalink
cxx-qt-gen: always use \n line endings for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Mar 8, 2022
1 parent c258515 commit 20af347
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cxx-qt-gen/src/gen_rs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,10 @@ mod tests {
}

let output = child.wait_with_output().unwrap();
let output = String::from_utf8(output.stdout).unwrap();
let mut output = String::from_utf8(output.stdout).unwrap();
if cfg!(windows) {
output = output.replace("\r\n", "\n");
}

// Quote does not retain empty lines so we throw them away in the case of the
// reference string as to not cause clashes
Expand Down

0 comments on commit 20af347

Please sign in to comment.