summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/findvalue_duplist
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/python_api/findvalue_duplist
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/python_api/findvalue_duplist')
-rw-r--r--lldb/test/python_api/findvalue_duplist/Makefile8
-rw-r--r--lldb/test/python_api/findvalue_duplist/TestSBFrameFindValue.py50
-rw-r--r--lldb/test/python_api/findvalue_duplist/main.cpp7
3 files changed, 0 insertions, 65 deletions
diff --git a/lldb/test/python_api/findvalue_duplist/Makefile b/lldb/test/python_api/findvalue_duplist/Makefile
deleted file mode 100644
index ddffdcfb62d..00000000000
--- a/lldb/test/python_api/findvalue_duplist/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-LEVEL = ../../make
-
-CXX_SOURCES := main.cpp
-
-# Clean renamed executable on 'make clean'
-clean: OBJECTS+=no_synth
-
-include $(LEVEL)/Makefile.rules
diff --git a/lldb/test/python_api/findvalue_duplist/TestSBFrameFindValue.py b/lldb/test/python_api/findvalue_duplist/TestSBFrameFindValue.py
deleted file mode 100644
index 0bc525753fd..00000000000
--- a/lldb/test/python_api/findvalue_duplist/TestSBFrameFindValue.py
+++ /dev/null
@@ -1,50 +0,0 @@
-"""Test that SBFrame::FindValue finds things but does not duplicate the entire variables list"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, sys, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class SBFrameFindValueTestCase(TestBase):
-
- mydir = TestBase.compute_mydir(__file__)
-
- @add_test_categories(['pyapi'])
- def test_formatters_api(self):
- """Test that SBFrame::FindValue finds things but does not duplicate the entire variables list"""
- self.build()
- self.setTearDownCleanup()
-
- exe_name = "a.out"
- exe = os.path.join(os.getcwd(), exe_name)
-
- # Create the target
- target = self.dbg.CreateTarget(exe)
- self.assertTrue(target, VALID_TARGET)
-
- # Set the breakpoints
- breakpoint = target.BreakpointCreateBySourceRegex('Set breakpoint here', lldb.SBFileSpec("main.cpp"))
- self.assertTrue(breakpoint.GetNumLocations() > 0, VALID_BREAKPOINT)
-
- # Launch the process, and do not stop at the entry point.
- process = target.LaunchSimple(None, None, self.get_process_working_directory())
-
- self.assertTrue(process, PROCESS_IS_VALID)
-
- # Frame #0 should be at our breakpoint.
- threads = lldbutil.get_threads_stopped_at_breakpoint (process, breakpoint)
-
- self.assertTrue(len(threads) == 1)
- self.thread = threads[0]
- self.frame = self.thread.frames[0]
- self.assertTrue(self.frame, "Frame 0 is valid.")
-
- self.assertTrue(self.frame.GetVariables(True,True,False,True).GetSize() == 2, "variable count is off")
- self.assertFalse(self.frame.FindValue("NoSuchThing",lldb.eValueTypeVariableArgument,lldb.eDynamicCanRunTarget).IsValid(), "found something that should not be here")
- self.assertTrue(self.frame.GetVariables(True,True,False,True).GetSize() == 2, "variable count is off after failed FindValue()")
- self.assertTrue(self.frame.FindValue("a",lldb.eValueTypeVariableArgument,lldb.eDynamicCanRunTarget).IsValid(), "FindValue() didn't find an argument")
- self.assertTrue(self.frame.GetVariables(True,True,False,True).GetSize() == 2, "variable count is off after successful FindValue()")
diff --git a/lldb/test/python_api/findvalue_duplist/main.cpp b/lldb/test/python_api/findvalue_duplist/main.cpp
deleted file mode 100644
index 7058d46b04a..00000000000
--- a/lldb/test/python_api/findvalue_duplist/main.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-int foo(int a, int b) {
- return a + b; // Set breakpoint here
-}
-
-int main() {
- return foo(1,3);
-}
OpenPOWER on IntegriCloud