forked from OSchip/llvm-project
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:
parent
bcbb69856d
commit
2c2d69dff5
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue