summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-07-31 11:33:16 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-07-31 11:33:16 +0000
commit525d27006d20fb42e6ccace07c7a35ef9c51b018 (patch)
treeede5a53645cc5eac3dc5f11add434100997c13d5 /lldb/packages/Python/lldbsuite
parent3a3ca963beb864920f2cc0ce767539afde124bb7 (diff)
downloadbcm5719-llvm-525d27006d20fb42e6ccace07c7a35ef9c51b018.tar.gz
bcm5719-llvm-525d27006d20fb42e6ccace07c7a35ef9c51b018.zip
[lldb][NFC] Check in completion crash test in lambda
llvm-svn: 367411
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/Makefile3
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/TestCompletionCrashInLambda.py4
-rw-r--r--lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/main.cpp6
3 files changed, 13 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/Makefile b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/Makefile
new file mode 100644
index 00000000000..82355a233cf
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/Makefile
@@ -0,0 +1,3 @@
+LEVEL = ../../make
+CXX_SOURCES := main.cpp
+include $(LEVEL)/Makefile.rules
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/TestCompletionCrashInLambda.py b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/TestCompletionCrashInLambda.py
new file mode 100644
index 00000000000..a04ec919972
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/TestCompletionCrashInLambda.py
@@ -0,0 +1,4 @@
+from lldbsuite.test import lldbinline
+from lldbsuite.test import decorators
+
+lldbinline.MakeInlineTest(__file__, globals(), [decorators.skipIf(bugnumber="rdar://53755023")])
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/main.cpp b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/main.cpp
new file mode 100644
index 00000000000..3bce3f32f4a
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/main.cpp
@@ -0,0 +1,6 @@
+int main() {
+ []()
+ { //%self.dbg.GetCommandInterpreter().HandleCompletion("e ", len("e "), 0, -1, lldb.SBStringList())
+ }
+ ();
+}
OpenPOWER on IntegriCloud