1""" 2Test that variable expressions of type integer are evaluated correctly. 3""" 4 5import AbstractBase 6 7from lldbsuite.test.decorators import * 8 9 10class IntegerTypeExprTestCase(AbstractBase.GenericTester): 11 @skipUnlessDarwin 12 def test_unsigned_short_type_from_block(self): 13 """Test that 'unsigned short'-type variables are displayed correctly from a block.""" 14 self.build_and_run_expr("unsigned_short.cpp", ["unsigned", "short"], bc=True) 15 16 def test_int_type(self): 17 """Test that int-type variable expressions are evaluated correctly.""" 18 self.build_and_run_expr("int.cpp", ["int"]) 19 20 @skipUnlessDarwin 21 def test_int_type_from_block(self): 22 """Test that int-type variables are displayed correctly from a block.""" 23 self.build_and_run_expr("int.cpp", ["int"]) 24 25 def test_unsigned_int_type(self): 26 """Test that 'unsigned_int'-type variable expressions are evaluated correctly.""" 27 self.build_and_run_expr("unsigned_int.cpp", ["unsigned", "int"]) 28 29 @skipUnlessDarwin 30 def test_unsigned_int_type_from_block(self): 31 """Test that 'unsigned int'-type variables are displayed correctly from a block.""" 32 self.build_and_run_expr("unsigned_int.cpp", ["unsigned", "int"], bc=True) 33