diff options
| author | Ilia K <ki.stfu@gmail.com> | 2015-02-11 04:51:41 +0000 |
|---|---|---|
| committer | Ilia K <ki.stfu@gmail.com> | 2015-02-11 04:51:41 +0000 |
| commit | 81b5c668ac649bbdbf9dc7e4aab2528f4590d421 (patch) | |
| tree | a96aa70b2d9b57e0fff255d22d76ed76e74725b0 /lldb/source/Host/macosx | |
| parent | 3bd47cee78afc3aea72ef0da887bf4caa7f685aa (diff) | |
| download | bcm5719-llvm-81b5c668ac649bbdbf9dc7e4aab2528f4590d421.tar.gz bcm5719-llvm-81b5c668ac649bbdbf9dc7e4aab2528f4590d421.zip | |
Close terminal after LaunchInTerminalTestCase test
Summary:
The test_launch_in_terminal test leaves a running terminal.
This patch adds "exit" after debugging with eLaunchFlagLaunchInTTY flag.
Reviewers: jingham, zturner, clayborg
Reviewed By: clayborg
Subscribers: emaste, vharron, lldb-commits, clayborg, jingham, zturner
Differential Revision: http://reviews.llvm.org/D7468
llvm-svn: 228801
Diffstat (limited to 'lldb/source/Host/macosx')
| -rw-r--r-- | lldb/source/Host/macosx/Host.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 1c0c91c7fba..58b9b42a70d 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -471,6 +471,8 @@ LaunchInNewTerminalWithAppleScript (const char *exe_path, ProcessLaunchInfo &lau command.Printf(" '%s'", exe_path); } command.PutCString (" ; echo Process exited with status $?"); + if (launch_info.GetFlags().Test(lldb::eLaunchFlagCloseTTYOnExit)) + command.PutCString (" ; exit"); StreamString applescript_source; |

