[Lldb-commits] [lldb] 493eefc - [lldb][test] Fix failing test TestAddressRange.py (#93871)

via lldb-commits lldb-commits at lists.llvm.org
Thu May 30 13:44:55 PDT 2024


Author: Miro Bucko
Date: 2024-05-30T13:44:51-07:00
New Revision: 493eefc93f2901dd987b8ff441004352b317cab9

URL: https://github.com/llvm/llvm-project/commit/493eefc93f2901dd987b8ff441004352b317cab9
DIFF: https://github.com/llvm/llvm-project/commit/493eefc93f2901dd987b8ff441004352b317cab9.diff

LOG: [lldb][test] Fix failing test TestAddressRange.py (#93871)

Test llvm-project/lldb/test/API/python_api/address_range/TestAddressRange.py is failing on Windows due adding a carriage return character at the end of line. Original PR is #93836.

Added: 
    

Modified: 
    lldb/test/API/python_api/address_range/TestAddressRange.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/python_api/address_range/TestAddressRange.py b/lldb/test/API/python_api/address_range/TestAddressRange.py
index f8783260a2351..86ca4a62155f0 100644
--- a/lldb/test/API/python_api/address_range/TestAddressRange.py
+++ b/lldb/test/API/python_api/address_range/TestAddressRange.py
@@ -191,7 +191,7 @@ def test_address_range_print_resolved(self):
         interp.HandleCommand(script, result, False)
         self.assertTrue(result.Succeeded(), "script command succeeded")
         # [0x1000-0x2000] // Resolved with target or addresses without sections
-        self.assertRegex(result.GetOutput(), "^\[0x[0-9a-f]+\-0x[0-9a-f]+\)$")
+        self.assertRegex(result.GetOutput(), "^\[0x[0-9a-f]+\-0x[0-9a-f]+\)")
         process.Kill()
 
     def test_address_range_print_no_section_resolved(self):


        


More information about the lldb-commits mailing list