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.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@115073 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/types/AbstractBase.py b/test/types/AbstractBase.py
index b92303d..e2189c5 100644
--- a/test/types/AbstractBase.py
+++ b/test/types/AbstractBase.py
@@ -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,