1""" 2Test that variables of integer basic types are displayed correctly. 3""" 4 5import AbstractBase 6 7from lldbsuite.test.decorators import * 8 9 10class LongTypesTestCase(AbstractBase.GenericTester): 11 def test_long_type(self): 12 """Test that long-type variables are displayed correctly.""" 13 self.build_and_run("long.cpp", ["long"]) 14 15 @skipUnlessDarwin 16 def test_long_type_from_block(self): 17 """Test that long-type variables are displayed correctly from a block.""" 18 self.build_and_run("long.cpp", ["long"], bc=True) 19 20 def test_unsigned_long_type(self): 21 """Test that 'unsigned long'-type variables are displayed correctly.""" 22 self.build_and_run("unsigned_long.cpp", ["unsigned", "long"]) 23 24 @skipUnlessDarwin 25 def test_unsigned_long_type_from_block(self): 26 """Test that 'unsigned_long'-type variables are displayed correctly from a block.""" 27 self.build_and_run("unsigned_long.cpp", ["unsigned", "long"], bc=True) 28 29 def test_long_long_type(self): 30 """Test that 'long long'-type variables are displayed correctly.""" 31 self.build_and_run("long_long.cpp", ["long long"]) 32 33 @skipUnlessDarwin 34 def test_long_long_type_from_block(self): 35 """Test that 'long_long'-type variables are displayed correctly from a block.""" 36 self.build_and_run("long_long.cpp", ["long long"], bc=True) 37 38 def test_unsigned_long_long_type(self): 39 """Test that 'unsigned long long'-type variables are displayed correctly.""" 40 self.build_and_run("unsigned_long_long.cpp", ["unsigned", "long long"]) 41 42 @skipUnlessDarwin 43 def test_unsigned_long_long_type_from_block(self): 44 """Test that 'unsigned_long_long'-type variables are displayed correctly from a block.""" 45 self.build_and_run("unsigned_long_long.cpp", ["unsigned", "long long"], bc=True) 46