diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-08-04 14:04:39 -0700 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2023-08-04 14:34:01 -0700 |
| commit | e0053bc04e6b80ece8b334b268c2942e012009b9 (patch) | |
| tree | 13eed5b6dac2b4577e335ed8ff72cac5134a0694 /lldb/test/API/python_api | |
| parent | 043d03d25bd7eadef66685de298342b35fe6b466 (diff) | |
| download | llvm-e0053bc04e6b80ece8b334b268c2942e012009b9.zip llvm-e0053bc04e6b80ece8b334b268c2942e012009b9.tar.gz llvm-e0053bc04e6b80ece8b334b268c2942e012009b9.tar.bz2 | |
[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
Diffstat (limited to 'lldb/test/API/python_api')
4 files changed, 1 insertions, 12 deletions
diff --git a/lldb/test/API/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/API/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py index d56c5b0..ec5b4da 100644 --- a/lldb/test/API/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py +++ b/lldb/test/API/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py @@ -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(): diff --git a/lldb/test/API/python_api/lldbutil/TestSwigVersion.py b/lldb/test/API/python_api/lldbutil/TestSwigVersion.py index d8fa83b..190f789 100644 --- a/lldb/test/API/python_api/lldbutil/TestSwigVersion.py +++ b/lldb/test/API/python_api/lldbutil/TestSwigVersion.py @@ -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) diff --git a/lldb/test/API/python_api/module_section/TestModuleAndSection.py b/lldb/test/API/python_api/module_section/TestModuleAndSection.py index 1e30a28..8a83740 100644 --- a/lldb/test/API/python_api/module_section/TestModuleAndSection.py +++ b/lldb/test/API/python_api/module_section/TestModuleAndSection.py @@ -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() diff --git a/lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py b/lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py index 2acba76..2053583 100644 --- a/lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py +++ b/lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py @@ -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} |
