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 12 @skipUnlessDarwin 13 def test_unsigned_short_type_from_block(self): 14 """Test that 'unsigned short'-type variables are displayed correctly from a block.""" 15 self.build_and_run_expr( 16 'unsigned_short.cpp', ['unsigned', 'short'], bc=True) 17 18 def test_int_type(self): 19 """Test that int-type variable expressions are evaluated correctly.""" 20 self.build_and_run_expr('int.cpp', ['int']) 21 22 @skipUnlessDarwin 23 def test_int_type_from_block(self): 24 """Test that int-type variables are displayed correctly from a block.""" 25 self.build_and_run_expr('int.cpp', ['int']) 26 27 def test_unsigned_int_type(self): 28 """Test that 'unsigned_int'-type variable expressions are evaluated correctly.""" 29 self.build_and_run_expr('unsigned_int.cpp', ['unsigned', 'int']) 30 31 @skipUnlessDarwin 32 def test_unsigned_int_type_from_block(self): 33 """Test that 'unsigned int'-type variables are displayed correctly from a block.""" 34 self.build_and_run_expr( 35 'unsigned_int.cpp', ['unsigned', 'int'], bc=True) 36