diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-01-10 17:44:08 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-01-10 17:44:08 +0000 |
commit | 7ad4ac47ca8a82671fa077b3753c45a1761ec575 (patch) | |
tree | 0a0db8765dfd70502efb9eda5335bb7f0982b466 | |
parent | a8bd0d94f8c3be2484aef6fecdad126115892bb5 (diff) | |
download | bcm5719-llvm-7ad4ac47ca8a82671fa077b3753c45a1761ec575.tar.gz bcm5719-llvm-7ad4ac47ca8a82671fa077b3753c45a1761ec575.zip |
Fix wrong test case in main.c. Oops!
llvm-svn: 123181
-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) |