[Lldb-commits] [lldb] r126515 - /lldb/trunk/test/process_launch/TestProcessIO.py

Johnny Chen johnny.chen at apple.com
Fri Feb 25 13:32:36 PST 2011


Author: johnny
Date: Fri Feb 25 15:32:36 2011
New Revision: 126515

URL: http://llvm.org/viewvc/llvm-project?rev=126515&view=rev
Log:
Simplified the code a little bit.

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

Modified: lldb/trunk/test/process_launch/TestProcessIO.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/process_launch/TestProcessIO.py?rev=126515&r1=126514&r2=126515&view=diff
==============================================================================
--- lldb/trunk/test/process_launch/TestProcessIO.py (original)
+++ lldb/trunk/test/process_launch/TestProcessIO.py Fri Feb 25 15:32:36 2011
@@ -20,9 +20,6 @@
         self.buildDwarf ()
         self.process_io_test ()
 
-    def do_nothing (self):
-        i = 1
-
     def process_io_test (self):
         """Test that process launch I/O redirection flags work properly."""
         exe = os.path.join (os.getcwd(), "a.out")
@@ -39,14 +36,12 @@
         try:
             os.remove (out_file)
         except OSError:
-            # do_nothing (self)
-            i = 1
+            pass
 
         try:
             os.remove (err_file)
         except OSError:
-            # do_nothing (self)
-            i = 1
+            pass
 
         launch_command = "process launch -i " + in_file + " -o " + out_file + " -e " + err_file
         
@@ -75,8 +70,7 @@
         try:
             os.remove (out_file)
         except OSError:
-            # do_nothing (self)
-            i = 1
+            pass
 
         # Check to see if the 'stderr' file was created
         try:
@@ -97,8 +91,7 @@
         try:
             os.remove (err_file)
         except OSError:
-            # do_nothing (self)
-            i = 1
+            pass
 
         if not success:
             self.fail (err_msg)





More information about the lldb-commits mailing list