Skip to content

Commit cd4180d

Browse files
committed
[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
1 parent 50d2a19 commit cd4180d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,24 @@
99
from lldbsuite.test import lldbutil
1010
from lldbsuite.test.decorators import *
1111

12+
13+
def isUbuntu18_04():
14+
"""
15+
Check if the host OS is Ubuntu 18.04.
16+
Derived from `platform.freedesktop_os_release` in Python 3.10.
17+
"""
18+
for path in ("/etc/os-release", "/usr/lib/os-release"):
19+
if os.path.exists(path):
20+
with open(path) as f:
21+
contents = f.read()
22+
if "Ubuntu 18.04" in contents:
23+
return True
24+
25+
return False
26+
27+
1228
class TestRerunExprDylib(TestBase):
29+
@skipTestIfFn(isUbuntu18_04, bugnumber="rdar://103831050")
1330
@skipIfWindows
1431
def test(self):
1532
"""

0 commit comments

Comments
 (0)