diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-10-19 00:16:14 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-19 00:16:14 +0000 |
| commit | 92b9e6e323654d4ac2219b2c6b87845e31051c60 (patch) | |
| tree | bdc938e5b8bfb5d9d4bfac50cab4b59ced3195e5 /lldb/test/breakpoint_command/TestBreakpointCommand.py | |
| parent | 0787b3224d9ac27fb5022698bfea8cf975b3ee0d (diff) | |
| download | bcm5719-llvm-92b9e6e323654d4ac2219b2c6b87845e31051c60.tar.gz bcm5719-llvm-92b9e6e323654d4ac2219b2c6b87845e31051c60.zip | |
Add an assert that 'output.txt' exists before opening it.
llvm-svn: 116775
Diffstat (limited to 'lldb/test/breakpoint_command/TestBreakpointCommand.py')
| -rw-r--r-- | lldb/test/breakpoint_command/TestBreakpointCommand.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/test/breakpoint_command/TestBreakpointCommand.py b/lldb/test/breakpoint_command/TestBreakpointCommand.py index 1dfc23ff8b9..4ab84c0a5a0 100644 --- a/lldb/test/breakpoint_command/TestBreakpointCommand.py +++ b/lldb/test/breakpoint_command/TestBreakpointCommand.py @@ -74,6 +74,10 @@ class BreakpointCommandTestCase(TestBase): # 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() |

