Jonas Devlieghere e0053bc04e
[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
2023-08-04 14:34:01 -07:00

27 lines
625 B
Python

"""
Test that we embed the swig version into the lldb module
"""
"""
import os
import time
import re
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test import lldbutil
"""
from lldbsuite.test.lldbtest import *
class SwigVersionTestCase(TestBase):
NO_DEBUG_INFO_TESTCASE = True
def test(self):
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], 4)
for v in lldb.swig_version:
self.assertGreaterEqual(v, 0)