mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 13:21:04 +08:00
Fix wrong test case in main.c. Oops!
llvm-svn: 123181
This commit is contained in:
@@ -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')",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user