From aa6c3f50e39546401e723f513bb78df783d9edab Mon Sep 17 00:00:00 2001 From: Stella Stamenova Date: Thu, 28 Jun 2018 19:42:30 +0000 Subject: [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 --- .../breakpoint/breakpoint_hit_count/TestBreakpointHitCount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test') 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) -- cgit v1.2.3