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

2024-05-30 Thread Greg Clayton via lldb-commits

https://github.com/clayborg closed 
https://github.com/llvm/llvm-project/pull/93871
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


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

2024-05-30 Thread Greg Clayton via lldb-commits

https://github.com/clayborg approved this pull request.


https://github.com/llvm/llvm-project/pull/93871
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


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

2024-05-30 Thread Miro Bucko via lldb-commits

https://github.com/mbucko updated 
https://github.com/llvm/llvm-project/pull/93871

>From afcd5a2524fc27cab2ff55ffba06cc19c62bbc4e Mon Sep 17 00:00:00 2001
From: Miro Bucko 
Date: Thu, 30 May 2024 13:04:17 -0700
Subject: [PATCH] [lldb][test] Fix failing test TestAddressRange.py

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:
---
 lldb/test/API/python_api/address_range/TestAddressRange.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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):

___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


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

2024-05-30 Thread Greg Clayton via lldb-commits


@@ -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?$")

clayborg wrote:

We want to make sure this succeeds

https://github.com/llvm/llvm-project/pull/93871
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


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

2024-05-30 Thread Greg Clayton via lldb-commits


@@ -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?$")

clayborg wrote:

I would remove the test for the end of line here:
```
self.assertRegex(result.GetOutput(), "^\[0x[0-9a-f]+\-0x[0-9a-f]+\)")
```


https://github.com/llvm/llvm-project/pull/93871
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


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

2024-05-30 Thread Greg Clayton via lldb-commits

https://github.com/clayborg edited 
https://github.com/llvm/llvm-project/pull/93871
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


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

2024-05-30 Thread Greg Clayton via lldb-commits

https://github.com/clayborg requested changes to this pull request.


https://github.com/llvm/llvm-project/pull/93871
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


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

2024-05-30 Thread via lldb-commits

llvmbot wrote:




@llvm/pr-subscribers-lldb

Author: Miro Bucko (mbucko)


Changes

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):

``




https://github.com/llvm/llvm-project/pull/93871
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits


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

2024-05-30 Thread Miro Bucko via lldb-commits

https://github.com/mbucko created 
https://github.com/llvm/llvm-project/pull/93871

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:

>From 61024a5fc1ca6130204e5fdb194f48af1bf3d8c5 Mon Sep 17 00:00:00 2001
From: Miro Bucko 
Date: Thu, 30 May 2024 13:04:17 -0700
Subject: [PATCH] [lldb][test] Fix failing test TestAddressRange.py

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:
---
 lldb/test/API/python_api/address_range/TestAddressRange.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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):

___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits