[Lldb-commits] [lldb] [lldb] Update test diff invocation for portability (PR #185557)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 9 19:36:10 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Dave Lee (kastiglione)
<details>
<summary>Changes</summary>
Use --strip-trailing-cr to ignore line ending differences. Fixes failures on windows.
---
Full diff: https://github.com/llvm/llvm-project/pull/185557.diff
1 Files Affected:
- (modified) lldb/test/Shell/ScriptInterpreter/Python/python-bytecode.test (+1-1)
``````````diff
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/python-bytecode.test b/lldb/test/Shell/ScriptInterpreter/Python/python-bytecode.test
index b4daa89067897..4ed865021e947 100644
--- a/lldb/test/Shell/ScriptInterpreter/Python/python-bytecode.test
+++ b/lldb/test/Shell/ScriptInterpreter/Python/python-bytecode.test
@@ -1,6 +1,6 @@
# RUN: mkdir -p %t
# RUN: %python %S/../../../../examples/python/formatter_bytecode.py --compile %s --format c --type-name RigidArray --output %t/output.txt
-# RUN: diff -u %S/Inputs/FormatterBytecode/RigidArrayLLDBFormatter.txt %t/output.txt
+# RUN: diff -u --strip-trailing-cr %S/Inputs/FormatterBytecode/RigidArrayLLDBFormatter.txt %t/output.txt
import lldb
``````````
</details>
https://github.com/llvm/llvm-project/pull/185557
More information about the lldb-commits
mailing list