[Lldb-commits] [lldb] r115075 - /lldb/trunk/test/types/AbstractBase.py

Johnny Chen johnny.chen at apple.com
Wed Sep 29 12:36:25 PDT 2010


Author: johnny
Date: Wed Sep 29 14:36:25 2010
New Revision: 115075

URL: http://llvm.org/viewvc/llvm-project?rev=115075&view=rev
Log:
Simple refactoring.

Modified:
    lldb/trunk/test/types/AbstractBase.py

Modified: lldb/trunk/test/types/AbstractBase.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/AbstractBase.py?rev=115075&r1=115074&r2=115075&view=diff
==============================================================================
--- lldb/trunk/test/types/AbstractBase.py (original)
+++ lldb/trunk/test/types/AbstractBase.py Wed Sep 29 14:36:25 2010
@@ -16,6 +16,9 @@
     # printf() stmts (see basic_type.cpp).
     pattern = re.compile(" (\*?a[^=]*) = '([^=]*)'$")
 
+    # Assert message.
+    DATA_TYPE_GROKKED = "Data type from expr parser output is parsed correctly"
+
     def generic_type_tester(self, atoms, quotedDisplay=False):
         """Test that variables with basic types are displayed correctly."""
 
@@ -80,7 +83,7 @@
             try:
                 dt = re.match("^\((.*)\)", output).group(1)
             except:
-                self.fail("Data type from expression parser is parsed correctly")
+                self.fail(self.DATA_TYPE_GROKKED)
 
             # Expect the display type string to contain each and every atoms.
             self.expect(dt,
@@ -140,7 +143,7 @@
             try:
                 dt = re.match("^\$[0-9]+ = \((.*)\)", output).group(1)
             except:
-                self.fail("Data type from expression parser is parsed correctly")
+                self.fail(self.DATA_TYPE_GROKKED)
 
             # Expect the display type string to contain each and every atoms.
             self.expect(dt,





More information about the lldb-commits mailing list