lldb-test: Improve newline handling