Fix inverted conditional in TestInferiorAssert.py
authorZachary Turner <zturner@google.com>
Tue, 2 Feb 2016 23:56:45 +0000 (23:56 +0000)
committerZachary Turner <zturner@google.com>
Tue, 2 Feb 2016 23:56:45 +0000 (23:56 +0000)
llvm-svn: 259608

lldb/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py

index 14e0963..b4601c1 100644 (file)
@@ -60,8 +60,8 @@ class AssertingInferiorTestCase(TestBase):
         lldbutil.run_break_set_by_file_and_line (self, "main.c", line, num_expected_locations=1, loc_exact=True)
 
     def check_stop_reason(self):
-        match_failure_reason = matchAndroid(api_levels=list(range(1, 16+1)))(self)
-        if match_failure_reason is None:
+        match_result = matchAndroid(api_levels=list(range(1, 16+1)))(self)
+        if match_result is not None:
             # On android until API-16 the abort() call ended in a sigsegv instead of in a sigabrt
             stop_reason = 'stop reason = signal SIGSEGV'
         else: