diff options
author | Jim Ingham <jingham@apple.com> | 2014-11-21 00:14:57 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-11-21 00:14:57 +0000 |
commit | c57059059d7f0047024b971e4f75418cdee9b761 (patch) | |
tree | 2e5b55043f22af0cba760cdf860f1a65e52790ea | |
parent | 4a259cf4a5f95ded6489695404cf904718431d18 (diff) | |
download | bcm5719-llvm-c57059059d7f0047024b971e4f75418cdee9b761.tar.gz bcm5719-llvm-c57059059d7f0047024b971e4f75418cdee9b761.zip |
Add a test for the driver's "-k" option.
llvm-svn: 222484
-rw-r--r-- | lldb/test/driver/batch_mode/TestBatchMode.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/test/driver/batch_mode/TestBatchMode.py b/lldb/test/driver/batch_mode/TestBatchMode.py index 2cd3fe56dcf..649a36a4729 100644 --- a/lldb/test/driver/batch_mode/TestBatchMode.py +++ b/lldb/test/driver/batch_mode/TestBatchMode.py @@ -50,7 +50,7 @@ class DriverBatchModeTest (TestBase): prompt = "(lldb) " # First time through, pass CRASH so the process will crash and stop in batch mode. - run_commands = ' -b -o "break set -n main" -o "run" -o "continue" ' + run_commands = ' -b -o "break set -n main" -o "run" -o "continue" -k "frame var touch_me_not"' self.child = pexpect.spawn('%s %s %s %s -- CRASH' % (self.lldbHere, self.lldbOption, run_commands, exe)) child = self.child # Turn on logging for what the child sends back. @@ -63,6 +63,8 @@ class DriverBatchModeTest (TestBase): self.expect_string ("continue") # The App should have crashed: self.expect_string("About to crash") + # The -k option should have printed the frame variable once: + self.expect_string ('(char *) touch_me_not') # Then we should have a live prompt: self.expect_string (prompt) self.child.sendline("frame variable touch_me_not") |