
Add a way to quit the interactive script interpreter from a shell tests. Currently, the only way (that I know) to exit the interactive Lua interpreter is to send a EOF with CTRL-D. I noticed that the embedded Python script interpreter accepts quit (while the regular python interpreter doesn't). I've added a special case to the Lua interpreter to do the same. Differential revision: https://reviews.llvm.org/D82272
11 lines
186 B
Plaintext
11 lines
186 B
Plaintext
# REQUIRES: lua
|
|
# UNSUPPORTED: lldb-repro
|
|
#
|
|
# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
|
|
script
|
|
print(95000 + 126)
|
|
quit
|
|
target list
|
|
# CHECK: 95126
|
|
# CHECK: No targets
|