Author: sivachandra Date: Mon May 11 13:49:59 2015 New Revision: 237010 URL: http://llvm.org/viewvc/llvm-project?rev=237010&view=rev Log: ["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 Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py?rev=237010&r1=237009&r2=237010&view=diff ============================================================================== --- lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py (original) +++ lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py Mon May 11 13:49:59 2015 @@ -16,16 +16,16 @@ class WatchLocationUsingWatchpointSetTes @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 WatchLocationUsingWatchpointSetTes # 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. Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py?rev=237010&r1=237009&r2=237010&view=diff ============================================================================== --- lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py (original) +++ lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py Mon May 11 13:49:59 2015 @@ -15,8 +15,8 @@ class WatchpointSetErrorTestCase(TestBas @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(TestBas # 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. _______________________________________________ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits