summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py12
-rw-r--r--lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py8
2 files changed, 8 insertions, 12 deletions
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
index 863cbc2896b..fa32db6c9df 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
@@ -16,16 +16,16 @@ class WatchLocationUsingWatchpointSetTestCase(TestBase):
@dsym_test
def test_watchlocation_with_dsym_using_watchpoint_set(self):
"""Test watching a location with 'watchpoint set expression -w write -s size' option."""
- self.buildDsym(dictionary=self.d)
- self.setTearDownCleanup(dictionary=self.d)
+ self.buildDsym()
+ self.setTearDownCleanup()
self.watchlocation_using_watchpoint_set()
@expectedFailureFreeBSD('llvm.org/pr18832')
@dwarf_test
def test_watchlocation_with_dwarf_using_watchpoint_set(self):
"""Test watching a location with 'watchpoint set expression -w write -s size' option."""
- self.buildDwarf(dictionary=self.d)
- self.setTearDownCleanup(dictionary=self.d)
+ self.buildDwarf()
+ self.setTearDownCleanup()
self.watchlocation_using_watchpoint_set()
def setUp(self):
@@ -38,12 +38,10 @@ class WatchLocationUsingWatchpointSetTestCase(TestBase):
# This is for verifying that watch location works.
self.violating_func = "do_bad_thing_with_location";
# Build dictionary to have unique executable names for each test method.
- self.exe_name = self.testMethodName
- self.d = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
def watchlocation_using_watchpoint_set(self):
"""Test watching a location with '-s size' option."""
- exe = os.path.join(os.getcwd(), self.exe_name)
+ exe = os.path.join(os.getcwd(), 'a.out')
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py
index 8e07662920b..e445b46afc6 100644
--- a/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py
+++ b/lldb/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py
@@ -15,8 +15,8 @@ class WatchpointSetErrorTestCase(TestBase):
@expectedFailureFreeBSD('llvm.org/pr18832')
def test_error_cases_with_watchpoint_set(self):
"""Test error cases with the 'watchpoint set' command."""
- self.buildDwarf(dictionary=self.d)
- self.setTearDownCleanup(dictionary=self.d)
+ self.buildDwarf()
+ self.setTearDownCleanup()
self.error_cases_with_watchpoint_set()
def setUp(self):
@@ -27,12 +27,10 @@ class WatchpointSetErrorTestCase(TestBase):
# Find the line number to break inside main().
self.line = line_number(self.source, '// Set break point at this line.')
# Build dictionary to have unique executable names for each test method.
- self.exe_name = self.testMethodName
- self.d = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
def error_cases_with_watchpoint_set(self):
"""Test error cases with the 'watchpoint set' command."""
- exe = os.path.join(os.getcwd(), self.exe_name)
+ exe = os.path.join(os.getcwd(), 'a.out')
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
OpenPOWER on IntegriCloud