Skip to content

[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

Merged
merged 4 commits into from
Dec 8, 2023

Conversation

Michael137
Copy link
Member

The expect_expr check was introduced in #74772. It is failing on Linux and Windows, so skip this test to unblock the bots

@llvmbot
Copy link
Member

llvmbot commented Dec 8, 2023

@llvm/pr-subscribers-lldb

Author: Michael Buch (Michael137)

Changes

The expect_expr check was introduced in #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 --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)

Copy link

github-actions bot commented Dec 8, 2023

✅ With the latest revision this PR passed the Python code formatter.

Copy link
Collaborator

@DavidSpickett DavidSpickett left a 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.

@DavidSpickett DavidSpickett merged commit 11a7e57 into llvm:main Dec 8, 2023
metaflow added a commit that referenced this pull request Dec 8, 2023
metaflow added a commit that referenced this pull request Dec 8, 2023
…nsupported platforms (#74818)"

This reverts commit e33302f.

there is a fix already, sorry for the noise
@DavidSpickett
Copy link
Collaborator

It was not the case, all green again!

Michael137 added a commit to Michael137/llvm-project that referenced this pull request Dec 8, 2023
…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)
Michael137 added a commit to Michael137/llvm-project that referenced this pull request Dec 11, 2023
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants