-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[lldb][test] TestLocationListLookup.py: skip expr check on unsupported platforms #74818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb][test] TestLocationListLookup.py: skip expr check on unsupported platforms #74818
Conversation
@llvm/pr-subscribers-lldb Author: Michael Buch (Michael137) ChangesThe Full diff: https://github.com/llvm/llvm-project/pull/74818.diff 1 Files Affected:
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)
|
✅ With the latest revision this PR passed the Python code formatter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% that the skips are going to work for AArch64 but I'll fix that if it is the case.
…supported platforms (#74818)" This reverts commit 11a7e57. Test fails: https://lab.llvm.org/buildbot/#/builders/219/builds/7416 and others.
It was not the case, all green again! |
…d platforms (llvm#74818) The `expect_expr` check was introduced in llvm#74772. It is failing on Linux and Windows, so skip this test to unblock the bots (cherry picked from commit 11a7e57)
…d platforms (llvm#74818) The `expect_expr` check was introduced in llvm#74772. It is failing on Linux and Windows, so skip this test to unblock the bots (cherry picked from commit 11a7e57)
The
expect_expr
check was introduced in #74772. It is failing on Linux and Windows, so skip this test to unblock the bots