[Lldb-commits] [lldb] cd4180d - [lldb][test] Skip TestRerunAndExprDylib on Ubuntu 18.04
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 20 07:54:48 PST 2023
Author: Dave Lee
Date: 2023-01-20T07:54:32-08:00
New Revision: cd4180dbf90b04014b65ff69c33002806680ced9
URL: https://github.com/llvm/llvm-project/commit/cd4180dbf90b04014b65ff69c33002806680ced9
DIFF: https://github.com/llvm/llvm-project/commit/cd4180dbf90b04014b65ff69c33002806680ced9.diff
LOG: [lldb][test] Skip TestRerunAndExprDylib on Ubuntu 18.04
Disable this test on Ubuntu 18.04, where it fails for yet to be determined reasons.
Differential Revision: https://reviews.llvm.org/D142141
Added:
Modified:
lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py
Removed:
################################################################################
diff --git a/lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py b/lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py
index fb4cc3248e20f..1a6944e6fd9bb 100644
--- a/lldb/test/API/functionalities/rerun_and_expr_dylib/TestRerunAndExprDylib.py
+++ b/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):
"""
More information about the lldb-commits
mailing list