2 from lldbsuite
.test
.decorators
import *
3 from lldbsuite
.test
.lldbtest
import *
4 from lldbsuite
.test
import lldbutil
7 class TestCppChainedCalls(TestBase
):
8 def test_with_run_command(self
):
10 lldbutil
.run_to_source_breakpoint(
11 self
, "// break here", lldb
.SBFileSpec("main.cpp")
15 self
.expect_expr("get(set(true))", result_type
="bool", result_value
="true")
16 self
.expect_expr("get(set(false))", result_type
="bool", result_value
="false")
17 self
.expect_expr("get(t & f)", result_type
="bool", result_value
="false")
18 self
.expect_expr("get(f & t)", result_type
="bool", result_value
="false")
19 self
.expect_expr("get(t & t)", result_type
="bool", result_value
="true")
20 self
.expect_expr("get(f & f)", result_type
="bool", result_value
="false")
21 self
.expect_expr("get(t & f)", result_type
="bool", result_value
="false")
22 self
.expect_expr("get(f) && get(t)", result_type
="bool", result_value
="false")
23 self
.expect_expr("get(f) && get(f)", result_type
="bool", result_value
="false")
24 self
.expect_expr("get(t) && get(t)", result_type
="bool", result_value
="true")