2 Tests that frame variable --depth and --element-count options work correctly
6 from lldbsuite
.test
.lldbtest
import *
7 import lldbsuite
.test
.lldbutil
as lldbutil
10 class TestFrameVarDepthAndElemCount(TestBase
):
12 """Test that bool types work in the expression parser"""
14 lldbutil
.run_to_source_breakpoint(
15 self
, "break here", lldb
.SBFileSpec("main.cpp")
18 # Check that we print 5 elements but only 2 levels deep.
20 "frame var --depth 2 --element-count 5 -- c",
22 "[0] = {\n b ={...}\n }",
23 "[1] = {\n b ={...}\n }",
24 "[2] = {\n b ={...}\n }",
25 "[3] = {\n b ={...}\n }",
26 "[4] = {\n b ={...}\n }",