diff options
-rw-r--r-- | lldb/test/python_api/frame/TestFrames.py | 4 | ||||
-rw-r--r-- | lldb/test/python_api/frame/main.c | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py index f8b80e629d9..d0aedfa5158 100644 --- a/lldb/test/python_api/frame/TestFrames.py +++ b/lldb/test/python_api/frame/TestFrames.py @@ -12,7 +12,6 @@ class FrameAPITestCase(TestBase): mydir = os.path.join("python_api", "frame") - @unittest2.expectedFailure @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") @python_api_test def test_get_arg_vals_for_call_stack_with_dsym(self): @@ -20,7 +19,6 @@ class FrameAPITestCase(TestBase): self.buildDsym() self.do_get_arg_vals() - @unittest2.expectedFailure @python_api_test def test_get_arg_vals_for_call_stack_with_dwarf(self): """Exercise SBFrame.GetVariables() API to get argument vals.""" @@ -103,8 +101,6 @@ class FrameAPITestCase(TestBase): # o a((int)val=3, (char)ch='A') print "Full stack traces when stopped on the breakpoint 'c':" print session.getvalue() - # rdar://problem/8801262 - # test failure: ./dotest.py -v -w -t -p TestFrames (argument values are wrong) self.expect(session.getvalue(), "Argugment values displayed correctly", exe=False, substrs = ["a((int)val=1, (char)ch='A')", diff --git a/lldb/test/python_api/frame/main.c b/lldb/test/python_api/frame/main.c index 749bd615bb9..35209db1812 100644 --- a/lldb/test/python_api/frame/main.c +++ b/lldb/test/python_api/frame/main.c @@ -20,9 +20,9 @@ int a(int val, char ch) char my_ch = ch; printf("a(val=%d, ch='%c')\n", val, ch); if (val <= 1) - return b(++val, ++ch); + return b(val+1, ch+1); else if (val >= 3) - return c(++val, ++ch); + return c(val+1, ch+1); return val; } @@ -32,7 +32,7 @@ int b(int val, char ch) int my_val = val; char my_ch = ch; printf("b(val=%d, ch='%c')\n", val, ch); - return c(++val, ++ch); + return c(val+1, ch+1); } int c(int val, char ch) |