diff options
author | Siva Chandra <sivachandra@google.com> | 2015-05-11 18:49:59 +0000 |
---|---|---|
committer | Siva Chandra <sivachandra@google.com> | 2015-05-11 18:49:59 +0000 |
commit | 268efdd49bd19b616da377aa1067fecc18b91815 (patch) | |
tree | 0c281db391cb42fff3f29e1c81a88553caa14bd3 | |
parent | 89c5491a72d2eda952f8314e6700e8657e13ffb6 (diff) | |
download | bcm5719-llvm-268efdd49bd19b616da377aa1067fecc18b91815.tar.gz bcm5719-llvm-268efdd49bd19b616da377aa1067fecc18b91815.zip |
["watch set" tests] Use default test case executable names.
Summary: This change similar to r236783.
Reviewers: chaoren
Reviewed By: chaoren
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D9630
llvm-svn: 237010
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. |