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