summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/issue_verification
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2015-12-22 17:14:47 +0000
committerTodd Fiala <todd.fiala@gmail.com>2015-12-22 17:14:47 +0000
commit5bdbef649b13e1be907717ee9c1bd63bd8790671 (patch)
tree6ad6fc488f0f6dde08493bb13314a491a742f53a /lldb/packages/Python/lldbsuite/test/issue_verification
parent677f3fb215bf9201807ad189fb6ea942596c8a35 (diff)
downloadbcm5719-llvm-5bdbef649b13e1be907717ee9c1bd63bd8790671.tar.gz
bcm5719-llvm-5bdbef649b13e1be907717ee9c1bd63bd8790671.zip
test infra: fix lldbinline tests to work with rerun
Fixes: https://llvm.org/bugs/show_bug.cgi?id=25922 llvm-svn: 256255
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/issue_verification')
-rw-r--r--lldb/packages/Python/lldbsuite/test/issue_verification/Makefile4
-rw-r--r--lldb/packages/Python/lldbsuite/test/issue_verification/TestRerunInline.py.park13
-rw-r--r--lldb/packages/Python/lldbsuite/test/issue_verification/inline_rerun_inferior.cpp14
3 files changed, 31 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/Makefile b/lldb/packages/Python/lldbsuite/test/issue_verification/Makefile
new file mode 100644
index 00000000000..e7bd3f4dd79
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/issue_verification/Makefile
@@ -0,0 +1,4 @@
+LEVEL = ../make
+CXX_SOURCES := inline_rerun_inferior.cpp
+CXXFLAGS += -std=c++11
+include $(LEVEL)/Makefile.rules
diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/TestRerunInline.py.park b/lldb/packages/Python/lldbsuite/test/issue_verification/TestRerunInline.py.park
new file mode 100644
index 00000000000..4c50495a2ec
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/issue_verification/TestRerunInline.py.park
@@ -0,0 +1,13 @@
+"""Tests that the rerun mechanism respects lldbinline-created tests.
+
+The current implementation of this test is expected to fail both on
+the initial run and on the rerun, assuming --rerun-all-issues is provided
+to the dotest.py run.
+
+This test could be improved by doing something in the test inferior
+C++ program that could look for the "should an issue be raised" marker
+file, and then really pass on the rerun.
+"""
+import lldbsuite.test.lldbinline as lldbinline
+
+lldbinline.MakeInlineTest(__file__, globals())
diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/inline_rerun_inferior.cpp b/lldb/packages/Python/lldbsuite/test/issue_verification/inline_rerun_inferior.cpp
new file mode 100644
index 00000000000..933911f7b28
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/issue_verification/inline_rerun_inferior.cpp
@@ -0,0 +1,14 @@
+//===-- main.cpp --------------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+typedef int Foo;
+
+int main() {
+ Foo array[3] = {1,2,3};
+ return 0; //% self.expect("frame variable array --show-types --", substrs = ['(Foo [3]) wrong_type_here = {','(Foo) [0] = 1','(Foo) [1] = 2','(Foo) [2] = 3'])
+}
OpenPOWER on IntegriCloud