mirror of
https://github.com/intel/llvm.git
synced 2026-01-30 05:55:35 +08:00
[lldb] Bump SWIG minimum version to 4
SWIG 4 was released in 2019 and has been the de-facto standard for a
while now. All bots are running SWIG 4.0 or later.
This was motivated by #64279 which discovered that 662548c broke the
LLDB build with SWIG 3 on Windows.
Differential revision: https://reviews.llvm.org/D156804
This commit is contained in:
@@ -117,8 +117,6 @@ class APIDefaultConstructorTestCase(TestBase):
|
||||
|
||||
sb_debugger.fuzz_obj(obj)
|
||||
|
||||
# darwin: This test passes with swig 3.0.2, fails w/3.0.5 other tests fail
|
||||
# with 2.0.12 http://llvm.org/pr23488
|
||||
def test_SBError(self):
|
||||
obj = lldb.SBError()
|
||||
if self.TraceOn():
|
||||
@@ -225,9 +223,6 @@ class APIDefaultConstructorTestCase(TestBase):
|
||||
|
||||
sb_listener.fuzz_obj(obj)
|
||||
|
||||
# Py3 asserts due to a bug in SWIG. Trying to upstream a patch to fix
|
||||
# this in 3.0.8
|
||||
@skipIf(py_version=[">=", (3, 0)], swig_version=["<", (3, 0, 8)])
|
||||
def test_SBModule(self):
|
||||
obj = lldb.SBModule()
|
||||
if self.TraceOn():
|
||||
|
||||
@@ -21,6 +21,6 @@ class SwigVersionTestCase(TestBase):
|
||||
self.assertTrue(getattr(lldb, "swig_version"))
|
||||
self.assertIsInstance(lldb.swig_version, tuple)
|
||||
self.assertEqual(len(lldb.swig_version), 3)
|
||||
self.assertGreaterEqual(lldb.swig_version[0], 1)
|
||||
self.assertGreaterEqual(lldb.swig_version[0], 4)
|
||||
for v in lldb.swig_version:
|
||||
self.assertGreaterEqual(v, 0)
|
||||
|
||||
@@ -10,9 +10,6 @@ from lldbsuite.test.lldbutil import symbol_type_to_str
|
||||
|
||||
|
||||
class ModuleAndSectionAPIsTestCase(TestBase):
|
||||
# Py3 asserts due to a bug in SWIG. A fix for this was upstreamed into
|
||||
# SWIG 3.0.8.
|
||||
@skipIf(py_version=[">=", (3, 0)], swig_version=["<", (3, 0, 8)])
|
||||
def test_module_and_section(self):
|
||||
"""Test module and section APIs."""
|
||||
self.build()
|
||||
|
||||
@@ -20,9 +20,6 @@ class ValueAsLinkedListTestCase(TestBase):
|
||||
# Find the line number to break at.
|
||||
self.line = line_number("main.cpp", "// Break at this line")
|
||||
|
||||
# Py3 asserts due to a bug in SWIG. A fix for this was upstreamed into
|
||||
# SWIG 3.0.8.
|
||||
@skipIf(py_version=[">=", (3, 0)], swig_version=["<", (3, 0, 8)])
|
||||
def test(self):
|
||||
"""Exercise SBValue API linked_list_iter."""
|
||||
d = {"EXE": self.exe_name}
|
||||
|
||||
Reference in New Issue
Block a user