[Lldb-commits] [lldb] [lldb][test] TestLocationListLookup.py: skip expr check on unsupported platforms (PR #74818)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 8 00:55:55 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Michael Buch (Michael137)
<details>
<summary>Changes</summary>
The `expect_expr` check was introduced in https://github.com/llvm/llvm-project/pull/74772. It is failing on Linux and Windows, so skip this test to unblock the bots
---
Full diff: https://github.com/llvm/llvm-project/pull/74818.diff
1 Files Affected:
- (modified) lldb/test/API/functionalities/location-list-lookup/TestLocationListLookup.py (+18-6)
``````````diff
diff --git a/lldb/test/API/functionalities/location-list-lookup/TestLocationListLookup.py b/lldb/test/API/functionalities/location-list-lookup/TestLocationListLookup.py
index 07f306a6ed78b..78fdaf939af1d 100644
--- a/lldb/test/API/functionalities/location-list-lookup/TestLocationListLookup.py
+++ b/lldb/test/API/functionalities/location-list-lookup/TestLocationListLookup.py
@@ -7,10 +7,7 @@
class LocationListLookupTestCase(TestBase):
- @skipIf(oslist=["linux"], archs=["arm"])
- def test_loclist(self):
- self.build()
-
+ def launch(self) -> lldb.SBProcess:
exe = self.getBuildArtifact("a.out")
target = self.dbg.CreateTarget(exe)
self.assertTrue(target, VALID_TARGET)
@@ -22,6 +19,9 @@ def test_loclist(self):
self.assertTrue(process.IsValid())
self.assertTrue(process.is_stopped)
+ return process
+
+ def check_local_vars(self, process: lldb.SBProcess, check_expr: bool):
# Find `bar` on the stack, then
# make sure we can read out the local
# variables (with both `frame var` and `expr`)
@@ -32,5 +32,17 @@ def test_loclist(self):
argv.GetDescription(strm)
self.assertNotEqual(strm.GetData().find("a.out"), -1)
- process.GetSelectedThread().SetSelectedFrame(f.idx)
- self.expect_expr("this", result_type="Foo *")
+ if check_expr:
+ process.GetSelectedThread().SetSelectedFrame(f.idx)
+ self.expect_expr("this", result_type="Foo *")
+
+ @skipIf(oslist=["linux"], archs=["arm"])
+ @skipIfDarwin
+ def test_loclist_frame_var(self):
+ self.build()
+ self.check_local_vars(self.launch(), check_expr=False)
+
+ @skipUnlessDarwin
+ def test_loclist_expr(self):
+ self.build()
+ self.check_local_vars(self.launch(), check_expr=True)
``````````
</details>
https://github.com/llvm/llvm-project/pull/74818
More information about the lldb-commits
mailing list