summaryrefslogtreecommitdiffstats
path: root/lldb/test/breakpoint_command/TestBreakpointCommand.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/breakpoint_command/TestBreakpointCommand.py')
-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