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

Johnny Chen johnny.chen at apple.com
Mon Oct 18 17:16:14 PDT 2010


Author: johnny
Date: Mon Oct 18 19:16:14 2010
New Revision: 116775

URL: http://llvm.org/viewvc/llvm-project?rev=116775&view=rev
Log:
Add an assert that 'output.txt' exists before opening it.

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=116775&r1=116774&r2=116775&view=diff
==============================================================================
--- lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py (original)
+++ lldb/trunk/test/breakpoint_command/TestBreakpointCommand.py Mon Oct 18 19:16:14 2010
@@ -74,6 +74,10 @@
 
         # Check that the file 'output.txt' exists and contains the string "lldb".
 
+        # The 'output.txt' file should now exist.
+        self.assertTrue(os.path.isfile("output.txt"),
+                        "'output.txt' exists due breakpoint command for breakpoint 2.")
+
         # Read the output file produced by running the program.
         with open('output.txt', 'r') as f:
             output = f.read()





More information about the lldb-commits mailing list