From 8231b05c7d63dfe24fa5c5fbca7e1c76af464d08 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 30 Sep 2016 22:07:41 +0000 Subject: [PATCH] IsValid is the way to ask a breakpoint location whether it is valid. llvm-svn: 282966 --- .../breakpoint_case_sensitivity/TestBreakpointCaseSensitivity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_case_sensitivity/TestBreakpointCaseSensitivity.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_case_sensitivity/TestBreakpointCaseSensitivity.py index bd5ae0e..798f91e 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_case_sensitivity/TestBreakpointCaseSensitivity.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_case_sensitivity/TestBreakpointCaseSensitivity.py @@ -27,7 +27,7 @@ class BreakpointCaseSensitivityTestCase(TestBase): @skipIf(oslist=['windows']) # Skip for windows platforms # Failing for unknown reason on non-Windows platforms. - @expectedFailureAll() + def test_breakpoint_doesnt_match_file_with_different_case(self): """Set breakpoint on file, shouldn't match files with different case on POSIX systems""" self.build() @@ -98,7 +98,8 @@ class BreakpointCaseSensitivityTestCase(TestBase): # Get the breakpoint location from breakpoint after we verified that, # indeed, it has one location. location = breakpoint.GetLocationAtIndex(0) - self.assertEqual(location and location.IsEnabled(), + + self.assertEqual(location.IsValid(), should_hit, VALID_BREAKPOINT_LOCATION + desc) -- 2.7.4