[lldb][NFC] Check in completion crash test in lambda
authorRaphael Isemann <teemperor@gmail.com>
Wed, 31 Jul 2019 11:33:16 +0000 (11:33 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 31 Jul 2019 11:33:16 +0000 (11:33 +0000)
llvm-svn: 367411

lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/Makefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/TestCompletionCrashInLambda.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-lambda/main.cpp [new file with mode: 0644]

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 (file)
index 0000000..82355a2
--- /dev/null
@@ -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 (file)
index 0000000..a04ec91
--- /dev/null
@@ -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 (file)
index 0000000..3bce3f3
--- /dev/null
@@ -0,0 +1,6 @@
+int main() {
+  []()
+  { //%self.dbg.GetCommandInterpreter().HandleCompletion("e ", len("e "), 0, -1, lldb.SBStringList())
+  }
+  ();
+}