summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2016-01-23 02:24:41 +0000
committerTodd Fiala <todd.fiala@gmail.com>2016-01-23 02:24:41 +0000
commit299d42a170bc490039829ebc9cbea779cbdeed37 (patch)
tree9b58004bf7089590ecf20db50e49dede6d3cd574 /lldb/packages/Python/lldbsuite/test
parent7cfaab2bcce1444fbb737a12d6dee9daaeeaf83e (diff)
downloadbcm5719-llvm-299d42a170bc490039829ebc9cbea779cbdeed37.tar.gz
bcm5719-llvm-299d42a170bc490039829ebc9cbea779cbdeed37.zip
fixed TestConsecutiveBreakpoints test on OS X
Also renamed directory and class name to fix typos. llvm-svn: 258601
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/Makefile (renamed from lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/Makefile)0
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/TestConsecutiveBreakpoints.py (renamed from lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/TestConsecutiveBreakpoints.py)12
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/main.cpp (renamed from lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/main.cpp)0
3 files changed, 6 insertions, 6 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/Makefile
index f89b52a972e..f89b52a972e 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/Makefile
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/TestConsecutiveBreakpoints.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/TestConsecutiveBreakpoints.py
index 1a3b26f4548..61379bd5ee7 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/TestConsecutiveBreakpoints.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/TestConsecutiveBreakpoints.py
@@ -11,7 +11,7 @@ import lldb
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.lldbtest import *
-class ConsecutiveBreakpoitsTestCase(TestBase):
+class ConsecutiveBreakpointsTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@@ -19,7 +19,7 @@ class ConsecutiveBreakpoitsTestCase(TestBase):
def test (self):
self.build ()
self.consecutive_breakpoints_tests()
-
+
def consecutive_breakpoints_tests(self):
exe = os.path.join (os.getcwd(), "a.out")
@@ -28,8 +28,8 @@ class ConsecutiveBreakpoitsTestCase(TestBase):
self.assertTrue(target, VALID_TARGET)
breakpoint1 = target.BreakpointCreateBySourceRegex("Set breakpoint here", lldb.SBFileSpec("main.cpp"))
- self.assertTrue(breakpoint and
- breakpoint.GetNumLocations() == 1,
+ self.assertTrue(breakpoint1 and
+ breakpoint1.GetNumLocations() == 1,
VALID_BREAKPOINT)
# Now launch the process, and do not stop at entry point.
@@ -42,12 +42,12 @@ class ConsecutiveBreakpoitsTestCase(TestBase):
# Set breakpoint to the next instruction
frame = thread.GetFrameAtIndex(0)
-
+
address = frame.GetPCAddress()
instructions = target.ReadInstructions(address, 2)
self.assertTrue(len(instructions) == 2)
address = instructions[1].GetAddress()
-
+
breakpoint2 = target.BreakpointCreateByAddress(address.GetLoadAddress(target))
process.Continue()
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/main.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/main.cpp
index c1943f03dbf..c1943f03dbf 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoins/main.cpp
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/consecutive_breakpoints/main.cpp
OpenPOWER on IntegriCloud