summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/data-formatter/refpointer-recursion
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-10-28 17:43:26 +0000
committerZachary Turner <zturner@google.com>2015-10-28 17:43:26 +0000
commitc432c8f856e0bd84de980a9d9bb2d31b06fa95b1 (patch)
tree4efa528e074a6e2df782345e4cd97f5d85d038c4 /lldb/test/functionalities/data-formatter/refpointer-recursion
parenta8a3bd210086b50242903ed95048fe5e53897878 (diff)
downloadbcm5719-llvm-c432c8f856e0bd84de980a9d9bb2d31b06fa95b1.tar.gz
bcm5719-llvm-c432c8f856e0bd84de980a9d9bb2d31b06fa95b1.zip
Move lldb/test to lldb/packages/Python/lldbsuite/test.
This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
Diffstat (limited to 'lldb/test/functionalities/data-formatter/refpointer-recursion')
-rw-r--r--lldb/test/functionalities/data-formatter/refpointer-recursion/Makefile5
-rw-r--r--lldb/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py41
-rw-r--r--lldb/test/functionalities/data-formatter/refpointer-recursion/main.cpp21
3 files changed, 0 insertions, 67 deletions
diff --git a/lldb/test/functionalities/data-formatter/refpointer-recursion/Makefile b/lldb/test/functionalities/data-formatter/refpointer-recursion/Makefile
deleted file mode 100644
index 314f1cb2f07..00000000000
--- a/lldb/test/functionalities/data-formatter/refpointer-recursion/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules
diff --git a/lldb/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py b/lldb/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py
deleted file mode 100644
index a7a18220351..00000000000
--- a/lldb/test/functionalities/data-formatter/refpointer-recursion/TestDataFormatterRefPtrRecursion.py
+++ /dev/null
@@ -1,41 +0,0 @@
-"""
-Test that ValueObjectPrinter does not cause an infinite loop when a reference to a struct that contains a pointer to itself is printed.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class DataFormatterRefPtrRecursionTestCase(TestBase):
-
- mydir = TestBase.compute_mydir(__file__)
-
- def setUp(self):
- # Call super's setUp().
- TestBase.setUp(self)
- # Find the line number to break at.
- self.line = line_number('main.cpp', '// Set break point at this line.')
-
- def test_with_run_command(self):
- """Test that ValueObjectPrinter does not cause an infinite loop when a reference to a struct that contains a pointer to itself is printed."""
- self.build()
- self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
- lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
- self.runCmd("run", RUN_SUCCEEDED)
-
- # The stop reason of the thread should be breakpoint.
- self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
- substrs = ['stopped',
- 'stop reason = breakpoint'])
-
- self.expect("frame variable foo", substrs = []);
- self.expect("frame variable foo --ptr-depth=1", substrs = ['ID = 1']);
- self.expect("frame variable foo --ptr-depth=2", substrs = ['ID = 1']);
- self.expect("frame variable foo --ptr-depth=3", substrs = ['ID = 1']);
diff --git a/lldb/test/functionalities/data-formatter/refpointer-recursion/main.cpp b/lldb/test/functionalities/data-formatter/refpointer-recursion/main.cpp
deleted file mode 100644
index 4b576bd266d..00000000000
--- a/lldb/test/functionalities/data-formatter/refpointer-recursion/main.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-int _ID = 0;
-
-class Foo {
- public:
- Foo *next;
- int ID;
-
- Foo () : next(0), ID(++_ID) {}
-};
-
-int evalFoo(Foo& foo)
-{
- return foo.ID; // Set break point at this line.
-}
-
-int main() {
- Foo f;
- f.next = &f;
- return evalFoo(f);
-}
-
OpenPOWER on IntegriCloud