forked from OSchip/llvm-project
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:
parent
0aea752f6d
commit
b19cd0fff4
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue