summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorStella Stamenova <stilis@microsoft.com>2018-06-28 19:42:30 +0000
committerStella Stamenova <stilis@microsoft.com>2018-06-28 19:42:30 +0000
commitaa6c3f50e39546401e723f513bb78df783d9edab (patch)
tree881348923825f521906823c2f9682aa67c8f0dce /lldb/packages/Python/lldbsuite/test
parent2476374c61d31e31c8cfa74450e92209f8394d4a (diff)
downloadbcm5719-llvm-aa6c3f50e39546401e723f513bb78df783d9edab.tar.gz
bcm5719-llvm-aa6c3f50e39546401e723f513bb78df783d9edab.zip
[lldbsuite] Fix TestBreakpointHitCount on Windows
Summary: On Windows, the newer DIA SDKs end up producing function names that contain the return type as well. This means that the function name returned in the test will contain the return type (int) in addition to the name of the function and the type of the input (a(int)). To account for the possibility of both, the test should pass if the function name matches either pattern. Reviewers: zturner, asmith Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D48654 llvm-svn: 335906
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_hit_count/TestBreakpointHitCount.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_hit_count/TestBreakpointHitCount.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_hit_count/TestBreakpointHitCount.py
index c56807af11f..6f696be8324 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_hit_count/TestBreakpointHitCount.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_hit_count/TestBreakpointHitCount.py
@@ -42,7 +42,7 @@ class BreakpointHitCountTestCase(TestBase):
"There should be a thread stopped due to breakpoint")
frame0 = thread.GetFrameAtIndex(0)
- self.assertEqual(frame0.GetFunctionName(), "a(int)");
+ self.assertTrue(frame0.GetFunctionName() == "a(int)" or frame0.GetFunctionName() == "int a(int)");
process.Continue()
self.assertEqual(process.GetState(), lldb.eStateExited)
OpenPOWER on IntegriCloud