[Lldb-commits] [lldb] r117136 - /lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py

Johnny Chen johnny.chen at apple.com
Fri Oct 22 12:51:42 PDT 2010


Author: johnny
Date: Fri Oct 22 14:51:42 2010
New Revision: 117136

URL: http://llvm.org/viewvc/llvm-project?rev=117136&view=rev
Log:
The test should remove 'output.txt' if it exists before launching the inferior
process which is supposed to create the file.

Modified:
    lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py

Modified: lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py?rev=117136&r1=117135&r2=117136&view=diff
==============================================================================
--- lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py (original)
+++ lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py Fri Oct 22 14:51:42 2010
@@ -69,7 +69,9 @@
                           "print >> here",
                           "here.close()"])
 
-        # Run the program.
+        # Run the program.  Remove 'output.txt' if it exists.
+        if os.path.exists('output.txt'):
+            os.remove('output.txt')
         self.runCmd("run", RUN_SUCCEEDED)
 
         # Check that the file 'output.txt' exists and contains the string "lldb".





More information about the lldb-commits mailing list