summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-10-22 19:51:42 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-10-22 19:51:42 +0000
commitbc095dbe688df9bf4e83bba336742ff05f552673 (patch)
tree8465ccbf92e24a0661d0b32e827de53b846a336c
parent9d0122af7d0989ba391de5c4d9fa5b896ae70c2c (diff)
downloadbcm5719-llvm-bc095dbe688df9bf4e83bba336742ff05f552673.tar.gz
bcm5719-llvm-bc095dbe688df9bf4e83bba336742ff05f552673.zip
The test should remove 'output.txt' if it exists before launching the inferior
process which is supposed to create the file. llvm-svn: 117136
-rw-r--r--lldb/test/breakpoint_command/TestBreakpointCommand.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/test/breakpoint_command/TestBreakpointCommand.py b/lldb/test/breakpoint_command/TestBreakpointCommand.py
index 4ab84c0a5a0..c7532f2d308 100644
--- a/lldb/test/breakpoint_command/TestBreakpointCommand.py
+++ b/lldb/test/breakpoint_command/TestBreakpointCommand.py
@@ -69,7 +69,9 @@ class BreakpointCommandTestCase(TestBase):
"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".
OpenPOWER on IntegriCloud