[Lldb-commits] [lldb] [lldb][test] Fix failing test TestAddressRange.py (PR #93871)
via lldb-commits
lldb-commits at lists.llvm.org
Thu May 30 13:12:16 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Miro Bucko (mbucko)
<details>
<summary>Changes</summary>
Summary:
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.
Test Plan:
llvm-lit -sv llvm-project/lldb/test/API/python_api/address_range/TestAddressRange.py
Reviewers: clayborg
Subscribers:
Tasks:
Tags:
---
Full diff: https://github.com/llvm/llvm-project/pull/93871.diff
1 Files Affected:
- (modified) lldb/test/API/python_api/address_range/TestAddressRange.py (+1-1)
``````````diff
diff --git a/lldb/test/API/python_api/address_range/TestAddressRange.py b/lldb/test/API/python_api/address_range/TestAddressRange.py
index f8783260a2351..70797784956cc 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]+\)\r?$")
process.Kill()
def test_address_range_print_no_section_resolved(self):
``````````
</details>
https://github.com/llvm/llvm-project/pull/93871
More information about the lldb-commits
mailing list