[Lldb-commits] [lldb] 1ac12a5 - [lldb][ARM] Invert emulation test assert message

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Jul 22 02:36:01 PDT 2022


Author: David Spickett
Date: 2022-07-22T09:35:30Z
New Revision: 1ac12a517767c0108a6859b723bc1351d8ba2157

URL: https://github.com/llvm/llvm-project/commit/1ac12a517767c0108a6859b723bc1351d8ba2157
DIFF: https://github.com/llvm/llvm-project/commit/1ac12a517767c0108a6859b723bc1351d8ba2157.diff

LOG: [lldb][ARM] Invert emulation test assert message

Previously you got:
AssertionError: False is not True : Emulation test succeeded.

Which is a bit of a head scratcher. The message is used when
the test fails, not when it succeeds.

Added: 
    

Modified: 
    lldb/test/API/arm/emulation/TestEmulations.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/arm/emulation/TestEmulations.py b/lldb/test/API/arm/emulation/TestEmulations.py
index 800ac8bf98206..0e30949bc5f48 100644
--- a/lldb/test/API/arm/emulation/TestEmulations.py
+++ b/lldb/test/API/arm/emulation/TestEmulations.py
@@ -49,4 +49,4 @@ def run_a_single_test(self, filename):
             print('\nRunning test ' + os.path.basename(filename))
             print(output)
 
-        self.assertTrue(success, 'Emulation test succeeded.')
+        self.assertTrue(success, 'Emulation test failed.')


        


More information about the lldb-commits mailing list