[Lldb-commits] [PATCH] D142141: [lldb][test] Skip TestRerunAndExprDylib on Ubuntu 18.04

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 19 10:39:48 PST 2023


kastiglione created this revision.
kastiglione added a reviewer: Michael137.
Herald added a project: All.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Disable this test on Ubuntu 18.04, where it fails for yet to be determined reasons.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142141

Files:
  lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py


Index: lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py
===================================================================
--- lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py
+++ lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py
@@ -9,7 +9,24 @@
 from lldbsuite.test import lldbutil
 from lldbsuite.test.decorators import *
 
+
+def isUbuntu18_04():
+    """
+    Check if the host OS is Ubuntu 18.04.
+    Derived from `platform.freedesktop_os_release` in Python 3.10.
+    """
+    for path in ("/etc/os-release", "/usr/lib/os-release"):
+        if os.path.exists(path):
+            with open(path) as f:
+                contents = f.read()
+            if "Ubuntu 18.04" in contents:
+                return True
+
+    return False
+
+
 class TestRerunExprDylib(TestBase):
+    @skipTestIfFn(isUbuntu18_04, bugnumber="rdar://103831050")
     @skipIfWindows
     def test(self):
         """


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142141.490588.patch
Type: text/x-patch
Size: 980 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230119/7aaa8cfe/attachment.bin>


More information about the lldb-commits mailing list