llvm-project
0de2d8e8 - [lldb][test] Avoid double new lines in test output (#244191)

Commit
2 days ago
[lldb][test] Avoid double new lines in test output (#244191) dotest prints the test output on Windows style with \r\n line terminators, which is correct as dotest can be invoked directly. However, when run via LIT and lldbtest.py, we return the dotest output to LIT which then prints it. Printing strings to text streams on Windows converts \n to \r\n, so LIT prints \r\r\n in the final test output. This patch normalizes the \r\n to Python's default \n before returning the output to LIT.
Author
Parents
Loading