DescriptionMake test262 test runner check for which exception is thrown
test262 "negative" test expectations list which exception is thrown. The ES2017
draft specification is very specific about which exception class is thrown
from which path, and V8 works hard to be correct with respect to that spec.
Previously, the test262 test runner would accept any nonzero status code,
such as from a crash, or a FAIL printed out, for a negative test. This
patch makes negative tests check for the right answer using a quick-and-dirty
parsing of the exception printing from d8 to find the exception class.
It invokes d8 in a way to get a status code of 0 from thrown exceptions
so that 'negative' tests aren't actually implemented by negating the output.
Amazingly, this didn't catch any test262 failures, but I verified the extra
checking interactively by changing a negative test to expect a different type
and saw it fail.
BUG=v8:4803
R=machenbach
LOG=Y
Committed: https://crrev.com/f3568ca4005fb81431f74175715f34a460bba765
Cr-Commit-Position: refs/heads/master@{#34763}
Patch Set 1 #
Total comments: 4
Patch Set 2 : testcase.testpath -> testcase.path #Patch Set 3 : Fix Mozilla test #
Total comments: 2
Patch Set 4 : Better factoring #
Messages
Total messages: 25 (12 generated)
|