[Lldb-commits] [lldb] r236783 - [TestWatchpointMultipleThreads] Use default test executable names.
Siva Chandra
sivachandra at google.com
Thu May 7 14:56:08 PDT 2015
Author: sivachandra
Date: Thu May 7 16:56:08 2015
New Revision: 236783
URL: http://llvm.org/viewvc/llvm-project?rev=236783&view=rev
Log:
[TestWatchpointMultipleThreads] Use default test executable names.
Summary:
Android has limits on file name lengths. This commit reduces the names of
the test executables to satisfy these limits.
Test Plan: dotest.py -p TestWatchpointMultipleThreads
Reviewers: chaoren
Reviewed By: chaoren
Subscribers: tberghammer, lldb-commits
Differential Revision: http://reviews.llvm.org/D9540
Modified:
lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py
Modified: lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py?rev=236783&r1=236782&r2=236783&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py Thu May 7 16:56:08 2015
@@ -17,30 +17,30 @@ class WatchpointForMultipleThreadsTestCa
@dsym_test
def test_watchpoint_multiple_threads_with_dsym(self):
"""Test that lldb watchpoint works for multiple threads."""
- self.buildDsym(dictionary=self.d)
- self.setTearDownCleanup(dictionary=self.d)
+ self.buildDsym()
+ self.setTearDownCleanup()
self.hello_multiple_threads()
@dwarf_test
def test_watchpoint_multiple_threads_with_dwarf(self):
"""Test that lldb watchpoint works for multiple threads."""
- self.buildDwarf(dictionary=self.d)
- self.setTearDownCleanup(dictionary=self.d)
+ self.buildDwarf()
+ self.setTearDownCleanup()
self.hello_multiple_threads()
@skipUnlessDarwin
@dsym_test
def test_watchpoint_multiple_threads_wp_set_and_then_delete_with_dsym(self):
"""Test that lldb watchpoint works for multiple threads, and after the watchpoint is deleted, the watchpoint event should no longer fires."""
- self.buildDsym(dictionary=self.d)
- self.setTearDownCleanup(dictionary=self.d)
+ self.buildDsym()
+ self.setTearDownCleanup()
self.hello_multiple_threads_wp_set_and_then_delete()
@dwarf_test
def test_watchpoint_multiple_threads_wp_set_and_then_delete_with_dwarf(self):
"""Test that lldb watchpoint works for multiple threads, and after the watchpoint is deleted, the watchpoint event should no longer fires."""
- self.buildDwarf(dictionary=self.d)
- self.setTearDownCleanup(dictionary=self.d)
+ self.buildDwarf()
+ self.setTearDownCleanup()
self.hello_multiple_threads_wp_set_and_then_delete()
def setUp(self):
@@ -50,14 +50,10 @@ class WatchpointForMultipleThreadsTestCa
self.source = 'main.cpp'
# Find the line number to break inside main().
self.first_stop = 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 hello_multiple_threads(self):
"""Test that lldb watchpoint works for multiple threads."""
- exe = os.path.join(os.getcwd(), self.exe_name)
- self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
+ self.runCmd("file %s" % os.path.join(os.getcwd(), 'a.out'), CURRENT_EXECUTABLE_SET)
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
lldbutil.run_break_set_by_file_and_line (self, None, self.first_stop, num_expected_locations=1)
@@ -101,8 +97,7 @@ class WatchpointForMultipleThreadsTestCa
def hello_multiple_threads_wp_set_and_then_delete(self):
"""Test that lldb watchpoint works for multiple threads, and after the watchpoint is deleted, the watchpoint event should no longer fires."""
- exe = os.path.join(os.getcwd(), self.exe_name)
- self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
+ self.runCmd("file %s" % os.path.join(os.getcwd(), 'a.out'), CURRENT_EXECUTABLE_SET)
# Add a breakpoint to set a watchpoint when stopped on the breakpoint.
lldbutil.run_break_set_by_file_and_line (self, None, self.first_stop, num_expected_locations=1)
More information about the lldb-commits
mailing list