[Lldb-commits] [lldb] r126531 - /lldb/trunk/test/process_launch/TestProcessLaunch.py

Johnny Chen johnny.chen at apple.com
Fri Feb 25 15:24:25 PST 2011


Author: johnny
Date: Fri Feb 25 17:24:25 2011
New Revision: 126531

URL: http://llvm.org/viewvc/llvm-project?rev=126531&view=rev
Log:
Simplify the dictionary setting for test_set_working_dir_* methods.

Modified:
    lldb/trunk/test/process_launch/TestProcessLaunch.py

Modified: lldb/trunk/test/process_launch/TestProcessLaunch.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/process_launch/TestProcessLaunch.py?rev=126531&r1=126530&r2=126531&view=diff
==============================================================================
--- lldb/trunk/test/process_launch/TestProcessLaunch.py (original)
+++ lldb/trunk/test/process_launch/TestProcessLaunch.py Fri Feb 25 17:24:25 2011
@@ -96,19 +96,17 @@
         if not success:
             self.fail (err_msg)
 
-    dict = {'CXX_SOURCES' : 'print_cwd.cpp'}
+    d = {'CXX_SOURCES' : 'print_cwd.cpp'}
 
     @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_set_working_dir_with_dsym (self):
-        dict = {'CXX_SOURCES' : 'print_cwd.cpp'}
-        self.buildDsym(dictionary=dict)
-        self.setTearDownCleanup(dict)
+        self.buildDsym(dictionary=self.d)
+        self.setTearDownCleanup(self.d)
         self.my_working_dir_test()
 
     def test_set_working_dir_with_dwarf (self):
-        dict = {'CXX_SOURCES' : 'print_cwd.cpp'}
-        self.buildDwarf(dictionary=dict)
-        self.setTearDownCleanup(dict)
+        self.buildDwarf(dictionary=self.d)
+        self.setTearDownCleanup(self.d)
         self.my_working_dir_test()
 
     # rdar://problem/9056462





More information about the lldb-commits mailing list