Change the regular expression used to grok the data type associated the output of

expression parser in light of the recent check ins.

Example:
    runCmd: expr a
    output: (double) $0 = 1100.12

llvm-svn: 115821
This commit is contained in:
Johnny Chen 2010-10-06 20:00:48 +00:00
parent bcbb69856d
commit 2c2d69dff5
1 changed files with 2 additions and 2 deletions

View File

@ -138,10 +138,10 @@ class GenericTester(TestBase):
# #
# Example: # Example:
# runCmd: expr a # runCmd: expr a
# output: $0 = (double) 1100.12 # output: (double) $0 = 1100.12
# #
try: try:
dt = re.match("^\$[0-9]+ = \((.*)\)", output).group(1) dt = re.match("^\((.*)\) \$[0-9]+ = ", output).group(1)
except: except:
self.fail(self.DATA_TYPE_GROKKED) self.fail(self.DATA_TYPE_GROKKED)