summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorMatt Kopec <Matt.Kopec@intel.com>2013-09-26 23:30:59 +0000
committerMatt Kopec <Matt.Kopec@intel.com>2013-09-26 23:30:59 +0000
commitee969f9f274989bd55794bcff9e925663bbc5df4 (patch)
tree15f6a3bdec03726e5800ef4d4edce2ad6024f771 /lldb/test/python_api
parent3c6ee599a2a9e43f70bbae277cfd41db9a30f35c (diff)
downloadbcm5719-llvm-ee969f9f274989bd55794bcff9e925663bbc5df4.tar.gz
bcm5719-llvm-ee969f9f274989bd55794bcff9e925663bbc5df4.zip
Mark 32/64-bit tests as expected fail after root causing and referencing bugzilla.
Fix TestFrames.py error to check against a None pc value. llvm-svn: 191470
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/frame/TestFrames.py5
-rw-r--r--lldb/test/python_api/hello_world/TestHelloWorld.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py
index e09bf1ba0c6..a13ecc32f06 100644
--- a/lldb/test/python_api/frame/TestFrames.py
+++ b/lldb/test/python_api/frame/TestFrames.py
@@ -21,6 +21,7 @@ class FrameAPITestCase(TestBase):
self.buildDsym()
self.do_get_arg_vals()
+ @expectedFailurei386 # llvm.org/pr17385: registers are unavailable above frame 0 in the inferior including pc
@python_api_test
@dwarf_test
def test_get_arg_vals_for_call_stack_with_dwarf(self):
@@ -100,7 +101,9 @@ class FrameAPITestCase(TestBase):
gpr_reg_set = lldbutil.get_GPRs(frame)
pc_value = gpr_reg_set.GetChildMemberWithName("pc")
self.assertTrue (pc_value, "We should have a valid PC.")
- self.assertTrue (int(pc_value.GetValue(), 0) == frame.GetPC(), "PC gotten as a value should equal frame's GetPC")
+ pc_value_str = pc_value.GetValue()
+ self.assertTrue (pc_value_str, "We should have a valid PC string.")
+ self.assertTrue (int(pc_value_str, 0) == frame.GetPC(), "PC gotten as a value should equal frame's GetPC")
sp_value = gpr_reg_set.GetChildMemberWithName("sp")
self.assertTrue (sp_value, "We should have a valid Stack Pointer.")
self.assertTrue (int(sp_value.GetValue(), 0) == frame.GetSP(), "SP gotten as a value should equal frame's GetSP")
diff --git a/lldb/test/python_api/hello_world/TestHelloWorld.py b/lldb/test/python_api/hello_world/TestHelloWorld.py
index af71dab9572..bfaeaded2ac 100644
--- a/lldb/test/python_api/hello_world/TestHelloWorld.py
+++ b/lldb/test/python_api/hello_world/TestHelloWorld.py
@@ -49,6 +49,7 @@ class HelloWorldTestCase(TestBase):
@not_remote_testsuite_ready
@python_api_test
@dwarf_test
+ @expectedFailurei386 # llvm.org/pr17384: lldb needs to be aware of linux-vdso.so to unwind stacks properly
def test_with_dwarf_and_attach_to_process_with_id_api(self):
"""Create target, spawn a process, and attach to it with process id.
@@ -74,6 +75,7 @@ class HelloWorldTestCase(TestBase):
@not_remote_testsuite_ready
@python_api_test
@dwarf_test
+ @expectedFailurei386 # llvm.org/pr17384: lldb needs to be aware of linux-vdso.so to unwind stacks properly
def test_with_dwarf_and_attach_to_process_with_name_api(self):
"""Create target, spawn a process, and attach to it with process name.
OpenPOWER on IntegriCloud