Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / python_api / lldbutil / TestSwigVersion.py
blob190f78955b7c8850b4c297921d260ca30cba75cd
1 """
2 Test that we embed the swig version into the lldb module
3 """
6 """
7 import os
8 import time
9 import re
10 import lldb
11 from lldbsuite.test.decorators import *
12 from lldbsuite.test import lldbutil
13 """
14 from lldbsuite.test.lldbtest import *
17 class SwigVersionTestCase(TestBase):
18 NO_DEBUG_INFO_TESTCASE = True
20 def test(self):
21 self.assertTrue(getattr(lldb, "swig_version"))
22 self.assertIsInstance(lldb.swig_version, tuple)
23 self.assertEqual(len(lldb.swig_version), 3)
24 self.assertGreaterEqual(lldb.swig_version[0], 4)
25 for v in lldb.swig_version:
26 self.assertGreaterEqual(v, 0)