[test] Fix exception parsing in test262.
The _ParseException function in testcfg.py made incorrect assumptions about how exceptions are printed (I believe it expected a trace like that produced by Error). R=littledan@chromium.org BUG=v8:5136 Review-Url: https://codereview.chromium.org/2386103010 Cr-Commit-Position: refs/heads/master@{#40078}
This commit is contained in:
parent
7461fc6c21
commit
194e418614
@ -383,12 +383,6 @@
|
||||
'annexB/language/eval-code/direct/func-switch-case-eval-func-block-scoping': [FAIL],
|
||||
'annexB/language/eval-code/direct/func-switch-dflt-eval-func-block-scoping': [FAIL],
|
||||
|
||||
# https://bugs.chromium.org/p/v8/issues/detail?id=5136
|
||||
'annexB/language/comments/multi-line-html-close': [FAIL],
|
||||
'annexB/language/comments/single-line-html-close': [FAIL],
|
||||
'annexB/language/comments/single-line-html-close-asi': [FAIL],
|
||||
'annexB/language/comments/single-line-html-open': [FAIL],
|
||||
|
||||
# https://bugs.chromium.org/p/v8/issues/detail?id=5137
|
||||
'annexB/built-ins/RegExp/prototype/compile/flags-undefined': [FAIL],
|
||||
'annexB/built-ins/RegExp/prototype/compile/pattern-regexp-distinct': [FAIL],
|
||||
|
@ -28,6 +28,7 @@
|
||||
|
||||
import imp
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import tarfile
|
||||
|
||||
@ -184,10 +185,9 @@ class Test262TestSuite(testsuite.TestSuite):
|
||||
return f.read()
|
||||
|
||||
def _ParseException(self, str):
|
||||
for line in str.split("\n")[::-1]:
|
||||
if line and not line[0].isspace() and ":" in line:
|
||||
return line.split(":")[0]
|
||||
|
||||
# somefile:somelinenumber: someerror[: sometext]
|
||||
match = re.search('^[^: ]*:[0-9]+: ([^ ]+?)($|: )', str, re.MULTILINE)
|
||||
return match.group(1)
|
||||
|
||||
def IsFailureOutput(self, testcase):
|
||||
output = testcase.output
|
||||
|
Loading…
Reference in New Issue
Block a user