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.

llvm-svn: 115073
This commit is contained in:
Johnny Chen 2010-09-29 19:29:42 +00:00
parent 0aea752f6d
commit b19cd0fff4
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ class GenericTester(TestBase):
# runCmd: frame variable a_array_bounded[0] # runCmd: frame variable a_array_bounded[0]
# output: (char) a_array_bounded[0] = 'a' # 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. # Expect the display type string to contain each and every atoms.
self.expect(dt, self.expect(dt,