2 Test displayed value of a vector variable while doing watchpoint operations
5 from __future__ import print_function
11 from lldbsuite.test.decorators import *
12 from lldbsuite.test.lldbtest import *
13 from lldbsuite.test import lldbutil
16 class TestValueOfVectorVariableTestCase(TestBase):
18 mydir = TestBase.compute_mydir(__file__)
20 # Watchpoints not supported
21 @expectedFailureAndroid(archs=['arm', 'aarch64'])
24 bugnumber="llvm.org/pr24446: WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows")
25 def test_value_of_vector_variable_using_watchpoint_set(self):
26 """Test verify displayed value of vector variable."""
27 self.build(dictionary=self.d)
28 self.setTearDownCleanup(dictionary=self.d)
29 self.value_of_vector_variable_with_watchpoint_set()
32 # Call super's setUp().
34 # Our simple source filename.
35 self.source = 'main.c'
36 self.exe_name = 'a.out'
37 self.d = {'C_SOURCES': self.source, 'EXE': self.exe_name}
39 def value_of_vector_variable_with_watchpoint_set(self):
40 """Test verify displayed value of vector variable"""
41 exe = os.path.join(os.getcwd(), 'a.out')
42 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
44 # Set break to get a frame
48 self.runCmd("run", RUN_SUCCEEDED)
50 # Value of a vector variable should be displayed correctly
52 "watchpoint set variable global_vector",
54 substrs=['new value: (1, 2, 3, 4)'])