[Lldb-commits] [lldb] r115073 - /lldb/trunk/test/types/AbstractBase.py
Johnny Chen
johnny.chen at apple.com
Wed Sep 29 12:29:42 PDT 2010
Author: johnny
Date: Wed Sep 29 14:29:42 2010
New Revision: 115073
URL: http://llvm.org/viewvc/llvm-project?rev=115073&view=rev
Log:
Wrapped the regexp grokking of data type within a try:expect: instead of letting
the Python runtime take over in case there isn't a match.
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=115073&r1=115072&r2=115073&view=diff
==============================================================================
--- lldb/trunk/test/types/AbstractBase.py (original)
+++ lldb/trunk/test/types/AbstractBase.py Wed Sep 29 14:29:42 2010
@@ -77,7 +77,10 @@
# runCmd: frame variable a_array_bounded[0]
# output: (char) a_array_bounded[0] = 'a'
#
- dt = re.match("^\((.*)\)", output).group(1)
+ try:
+ dt = re.match("^\((.*)\)", output).group(1)
+ except:
+ self.fail("Data type from expression parser is parsed correctly")
# Expect the display type string to contain each and every atoms.
self.expect(dt,
More information about the lldb-commits
mailing list