[Lldb-commits] [lldb] 0999996 - Don't expect what newlines look like - never works on Windows.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 24 12:28:26 PDT 2023


Author: Jim Ingham
Date: 2023-03-24T12:28:16-07:00
New Revision: 0999996f68186183eaf065e4a05a3e73170a19ae

URL: https://github.com/llvm/llvm-project/commit/0999996f68186183eaf065e4a05a3e73170a19ae
DIFF: https://github.com/llvm/llvm-project/commit/0999996f68186183eaf065e4a05a3e73170a19ae.diff

LOG: Don't expect what newlines look like - never works on Windows.

Added: 
    

Modified: 
    lldb/test/API/commands/command/backticks/TestBackticksInAlias.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/commands/command/backticks/TestBackticksInAlias.py b/lldb/test/API/commands/command/backticks/TestBackticksInAlias.py
index 4a95cff21e713..74c33c66cdd08 100644
--- a/lldb/test/API/commands/command/backticks/TestBackticksInAlias.py
+++ b/lldb/test/API/commands/command/backticks/TestBackticksInAlias.py
@@ -76,6 +76,7 @@ def test_backticks_in_raw_cmd(self):
         interp = self.dbg.GetCommandInterpreter()
         interp.HandleCommand(f"script {argc_value} - `argc`", result)
         self.assertTrue(result.Succeeded(), "Command succeeded")
-        self.assertEqual("0\n", result.GetOutput(), "Substitution worked")
+        fixed_output = result.GetOutput().rstrip()
+        self.assertEqual("0", fixed_output, "Substitution worked")
 
         


        


More information about the lldb-commits mailing list