[Lldb-commits] [lldb] r259608 - Fix inverted conditional in TestInferiorAssert.py

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 2 15:56:45 PST 2016


Author: zturner
Date: Tue Feb  2 17:56:45 2016
New Revision: 259608

URL: http://llvm.org/viewvc/llvm-project?rev=259608&view=rev
Log:
Fix inverted conditional in TestInferiorAssert.py

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

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py?rev=259608&r1=259607&r2=259608&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/inferior-assert/TestInferiorAssert.py Tue Feb  2 17:56:45 2016
@@ -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:




More information about the lldb-commits mailing list