From c8c5226145fd0d9a2c7a76bbd29d04b4225834f1 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Wed, 31 Jul 2019 12:15:21 +0000 Subject: [PATCH] [lldb][NFC] Check in completion crash test case llvm-svn: 367420 --- .../completion-crash-incomplete-record/Makefile | 3 +++ .../TestCompletionCrashIncompleteRecord.py | 4 ++++ .../completion-crash-incomplete-record/main.cpp | 11 +++++++++++ 3 files changed, 18 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/Makefile create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/TestCompletionCrashIncompleteRecord.py create mode 100644 lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/main.cpp diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/Makefile b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/Makefile new file mode 100644 index 0000000..82355a2 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/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-incomplete-record/TestCompletionCrashIncompleteRecord.py b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/TestCompletionCrashIncompleteRecord.py new file mode 100644 index 0000000..68bd864 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/TestCompletionCrashIncompleteRecord.py @@ -0,0 +1,4 @@ +from lldbsuite.test import lldbinline +from lldbsuite.test import decorators + +lldbinline.MakeInlineTest(__file__, globals(), [decorators.skipIf(bugnumber="rdar://53756116")]) diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/main.cpp b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/main.cpp new file mode 100644 index 0000000..f7ca83c --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/expression_command/completion-crash-incomplete-record/main.cpp @@ -0,0 +1,11 @@ +int i; +struct F { + int &r; + F() : r(i) {} +}; +template struct unique_ptr { + F i; + unique_ptr() : i() {//%self.dbg.GetCommandInterpreter().HandleCompletion("e ", len("e "), 0, -1, lldb.SBStringList()) +} +}; +int main() {unique_ptr u; } -- 2.7.4