TestIntegerTypes.py revision 1aabaac9827104aecfad61e9b12412d8a89e66a0
17c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen""" 27c52ff1d83ec262f35c9a825af107735913e7225Johnny ChenTest that variables of integer basic types are displayed correctly. 37c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen""" 47c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 551a9e00e10d29ba01af7bc2d5efbcf31ec1f76a4Johnny Chenimport AbstractBase 67c52ff1d83ec262f35c9a825af107735913e7225Johnny Chenimport unittest2 77c52ff1d83ec262f35c9a825af107735913e7225Johnny Chenimport lldb 81aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chenimport sys 97c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1051a9e00e10d29ba01af7bc2d5efbcf31ec1f76a4Johnny Chenclass IntegerTypesTestCase(AbstractBase.GenericTester): 117c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 127c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen mydir = "types" 137c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 141aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 157c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_char_type_with_dsym(self): 167c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that char-type variables are displayed correctly.""" 177c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'char.cpp'} 187c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 197c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 207c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.char_type() 217c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 227c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_char_type_with_dwarf(self): 237c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that char-type variables are displayed correctly.""" 247c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'char.cpp'} 257c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 267c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 277c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.char_type() 287c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 291aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 307c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_char_type_with_dsym(self): 317c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned_char'-type variables are displayed correctly.""" 327c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_char.cpp'} 337c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 347c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 357c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_char_type() 367c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 377c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_char_type_with_dwarf(self): 387c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned char'-type variables are displayed correctly.""" 397c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_char.cpp'} 407c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 417c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 427c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_char_type() 437c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 441aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 457c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_short_type_with_dsym(self): 467c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that short-type variables are displayed correctly.""" 477c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'short.cpp'} 487c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 497c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 507c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.short_type() 517c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 527c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_short_type_with_dwarf(self): 537c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that short-type variables are displayed correctly.""" 547c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'short.cpp'} 557c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 567c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 577c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.short_type() 587c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 591aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 607c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_short_type_with_dsym(self): 617c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned_short'-type variables are displayed correctly.""" 627c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_short.cpp'} 637c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 647c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 657c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_short_type() 667c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 677c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_short_type_with_dwarf(self): 687c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned short'-type variables are displayed correctly.""" 697c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_short.cpp'} 707c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 717c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 727c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_short_type() 737c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 741aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 757c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_int_type_with_dsym(self): 767c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that int-type variables are displayed correctly.""" 777c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'int.cpp'} 787c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 797c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 807c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.int_type() 817c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 827c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_int_type_with_dwarf(self): 837c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that int-type variables are displayed correctly.""" 847c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'int.cpp'} 857c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 867c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 877c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.int_type() 887c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 891aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 907c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_int_type_with_dsym(self): 917c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned_int'-type variables are displayed correctly.""" 927c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_int.cpp'} 937c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 947c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 957c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_int_type() 967c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 977c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_int_type_with_dwarf(self): 987c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned int'-type variables are displayed correctly.""" 997c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_int.cpp'} 1007c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 1017c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 1027c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_int_type() 1037c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1041aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 1057c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_long_type_with_dsym(self): 1067c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that long-type variables are displayed correctly.""" 1077c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'long.cpp'} 1087c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 1097c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 1107c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.long_type() 1117c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1127c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_long_type_with_dwarf(self): 1137c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that long-type variables are displayed correctly.""" 1147c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'long.cpp'} 1157c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 1167c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 1177c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.long_type() 1187c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1191aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 1207c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_long_type_with_dsym(self): 1217c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned long'-type variables are displayed correctly.""" 1227c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_long.cpp'} 1237c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 1247c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 1257c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_long_type() 1267c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1277c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_long_type_with_dwarf(self): 1287c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned long'-type variables are displayed correctly.""" 1297c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_long.cpp'} 1307c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 1317c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 1327c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_long_type() 1337c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1347c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen # rdar://problem/8482903 1357c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen # test suite failure for types dir -- "long long" and "unsigned long long" 1367c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1377c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen @unittest2.expectedFailure 1381aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 1397c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_long_long_type_with_dsym(self): 1407c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'long long'-type variables are displayed correctly.""" 1417c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'long_long.cpp'} 1427c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 1437c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 1447c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.long_long_type() 1457c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1467c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen @unittest2.expectedFailure 1477c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_long_long_type_with_dwarf(self): 1487c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'long long'-type variables are displayed correctly.""" 1497c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'long_long.cpp'} 1507c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 1517c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 1527c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.long_long_type() 1537c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1547c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen @unittest2.expectedFailure 1551aabaac9827104aecfad61e9b12412d8a89e66a0Johnny Chen @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") 1567c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_long_long_type_with_dsym(self): 1577c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned long long'-type variables are displayed correctly.""" 1587c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_long_long.cpp'} 1597c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDsym(dictionary=d) 1607c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 1617c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_long_long_type() 1627c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1637c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen @unittest2.expectedFailure 1647c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def test_unsigned_long_long_type_with_dwarf(self): 1657c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned long long'-type variables are displayed correctly.""" 1667c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen d = {'CXX_SOURCES': 'unsigned_long_long.cpp'} 1677c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.buildDwarf(dictionary=d) 1687c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.setTearDownCleanup(dictionary=d) 1697c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.unsigned_long_long_type() 1707c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1717c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def char_type(self): 1727c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that char-type variables are displayed correctly.""" 1737c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['char']), quotedDisplay=True) 1747c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1757c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def unsigned_char_type(self): 1767c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned char'-type variables are displayed correctly.""" 1777c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['unsigned', 'char']), quotedDisplay=True) 1787c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1797c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def short_type(self): 1807c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that short-type variables are displayed correctly.""" 1817c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['short'])) 1827c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1837c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def unsigned_short_type(self): 1847c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned short'-type variables are displayed correctly.""" 1857c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['unsigned', 'short'])) 1867c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1877c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def int_type(self): 1887c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that int-type variables are displayed correctly.""" 1897c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['int'])) 1907c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1917c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def unsigned_int_type(self): 1927c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned int'-type variables are displayed correctly.""" 1937c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['unsigned', 'int'])) 1947c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1957c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def long_type(self): 1967c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that long-type variables are displayed correctly.""" 1977c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['long'])) 1987c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 1997c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def unsigned_long_type(self): 2007c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned long'-type variables are displayed correctly.""" 2017c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['unsigned', 'long'])) 2027c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 2037c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def long_long_type(self): 2047c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that long long-type variables are displayed correctly.""" 2057c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['long long'])) 2067c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 2077c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen def unsigned_long_long_type(self): 2087c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen """Test that 'unsigned long long'-type variables are displayed correctly.""" 2097c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen self.generic_type_tester(set(['unsigned', 'long long'])) 2107c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 2117c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen 2127c52ff1d83ec262f35c9a825af107735913e7225Johnny Chenif __name__ == '__main__': 2137c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen import atexit 2147c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen lldb.SBDebugger.Initialize() 2157c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen atexit.register(lambda: lldb.SBDebugger.Terminate()) 2167c52ff1d83ec262f35c9a825af107735913e7225Johnny Chen unittest2.main() 217