2 Test displayed value of a vector variable while doing watchpoint operations
7 from lldbsuite
.test
.decorators
import *
8 from lldbsuite
.test
.lldbtest
import *
9 from lldbsuite
.test
import lldbutil
12 class TestValueOfVectorVariableTestCase(TestBase
):
13 NO_DEBUG_INFO_TESTCASE
= True
15 def test_value_of_vector_variable_using_watchpoint_set(self
):
16 """Test verify displayed value of vector variable."""
17 exe
= self
.getBuildArtifact("a.out")
18 d
= {"C_SOURCES": self
.source
, "EXE": exe
}
19 self
.build(dictionary
=d
)
20 self
.setTearDownCleanup(dictionary
=d
)
21 self
.value_of_vector_variable_with_watchpoint_set()
24 # Call super's setUp().
26 # Our simple source filename.
27 self
.source
= "main.c"
29 def value_of_vector_variable_with_watchpoint_set(self
):
30 """Test verify displayed value of vector variable"""
31 exe
= self
.getBuildArtifact("a.out")
32 self
.runCmd("file " + exe
, CURRENT_EXECUTABLE_SET
)
34 # Set break to get a frame
38 self
.runCmd("run", RUN_SUCCEEDED
)
40 # Value of a vector variable should be displayed correctly
42 "watchpoint set variable global_vector",
44 substrs
=["new value: (1, 2, 3, 4)"],