2 Test that variable expressions of integer basic types are evaluated correctly.
7 from lldbsuite
.test
.decorators
import *
10 class LongTypesExprTestCase(AbstractBase
.GenericTester
):
11 def test_long_type(self
):
12 """Test that long-type variable expressions are evaluated correctly."""
13 self
.build_and_run_expr("long.cpp", ["long"])
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_expr("long.cpp", ["long"], bc
=True)
20 def test_unsigned_long_type(self
):
21 """Test that 'unsigned long'-type variable expressions are evaluated correctly."""
22 self
.build_and_run_expr("unsigned_long.cpp", ["unsigned", "long"])
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_expr("unsigned_long.cpp", ["unsigned", "long"], bc
=True)
29 def test_long_long_type(self
):
30 """Test that 'long long'-type variable expressions are evaluated correctly."""
31 self
.build_and_run_expr("long_long.cpp", ["long long"])
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_expr("long_long.cpp", ["long long"], bc
=True)
38 def test_unsigned_long_long_type(self
):
39 """Test that 'unsigned long long'-type variable expressions are evaluated correctly."""
40 self
.build_and_run_expr("unsigned_long_long.cpp", ["unsigned", "long long"])
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_expr(
46 "unsigned_long_long.cpp", ["unsigned", "long long"], bc
=True