summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/ScriptInterpreter/Lua
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-12-21 22:33:01 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-12-21 22:33:02 -0800
commitba0eb7b66fd9dac7bf4883f70b65bded03a4b97a (patch)
tree23411f2b43323688d2cb522e2cf5cc5aab6454e9 /lldb/test/Shell/ScriptInterpreter/Lua
parent68cb7d85423c19a61c5d6afbc8e004a345a28856 (diff)
downloadbcm5719-llvm-ba0eb7b66fd9dac7bf4883f70b65bded03a4b97a.tar.gz
bcm5719-llvm-ba0eb7b66fd9dac7bf4883f70b65bded03a4b97a.zip
[lldb/ScriptInterpreter] Fix stale/bogus error messages
Fix the nonsensical error messages for when breakpoint and watchpoint callbacks are not supported.
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Lua')
-rw-r--r--lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_callback.test5
-rw-r--r--lldb/test/Shell/ScriptInterpreter/Lua/watchpoint_callback.test8
2 files changed, 13 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_callback.test b/lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_callback.test
new file mode 100644
index 00000000000..4dbf286a693
--- /dev/null
+++ b/lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_callback.test
@@ -0,0 +1,5 @@
+# REQUIRES: lua
+# RUN: %lldb -s %s --script-language lua 2>&1 | FileCheck %s
+b main
+breakpoint command add -s lua
+# CHECK: error: This script interpreter does not support breakpoint callbacks
diff --git a/lldb/test/Shell/ScriptInterpreter/Lua/watchpoint_callback.test b/lldb/test/Shell/ScriptInterpreter/Lua/watchpoint_callback.test
new file mode 100644
index 00000000000..c0bddbc1fdf
--- /dev/null
+++ b/lldb/test/Shell/ScriptInterpreter/Lua/watchpoint_callback.test
@@ -0,0 +1,8 @@
+# REQUIRES: lua
+# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t
+# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s
+b main
+r
+watchpoint set expr 0x0
+watchpoint command add -s lua
+# CHECK: error: This script interpreter does not support watchpoint callbacks
OpenPOWER on IntegriCloud