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
diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py
index e09bf1b..a13ecc3 100644
--- a/lldb/test/python_api/frame/TestFrames.py
+++ b/lldb/test/python_api/frame/TestFrames.py
@@ -21,6 +21,7 @@
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 @@
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")