[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:
Jonas Devlieghere
2023-08-04 14:04:39 -07:00
parent 043d03d25b
commit e0053bc04e
9 changed files with 5 additions and 20 deletions

View File

@@ -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():

View File

@@ -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)

View File

@@ -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()

View File

@@ -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}