Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Issue 1766503002: Make test262 test runner check for which exception is thrown (Closed)

Created:
4 years, 9 months ago by Dan Ehrenberg
Modified:
4 years, 9 months ago
Reviewers:
Michael Achenbach
CC:
adamk, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Make 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -25 lines) Patch
M test/message/testcfg.py View 1 1 chunk +3 lines, -1 line 0 comments Download
M test/mozilla/testcfg.py View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M test/promises-aplus/testcfg.py View 1 chunk +4 lines, -4 lines 0 comments Download
M test/simdjs/testcfg.py View 1 chunk +3 lines, -3 lines 0 comments Download
M test/test262/testcfg.py View 1 2 3 3 chunks +14 lines, -6 lines 0 comments Download
M test/webkit/testcfg.py View 1 3 chunks +5 lines, -5 lines 0 comments Download
M tools/testrunner/local/testsuite.py View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766503002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766503002/1
4 years, 9 months ago (2016-03-03 23:55:30 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/11050)
4 years, 9 months ago (2016-03-04 00:07:35 UTC) #6
Michael Achenbach
https://codereview.chromium.org/1766503002/diff/1/test/message/testcfg.py File test/message/testcfg.py (right): https://codereview.chromium.org/1766503002/diff/1/test/message/testcfg.py#newcode99 test/message/testcfg.py:99: testpath = testcase.testpath testcase.path https://codereview.chromium.org/1766503002/diff/1/test/webkit/testcfg.py File test/webkit/testcfg.py (right): https://codereview.chromium.org/1766503002/diff/1/test/webkit/testcfg.py#newcode123 ...
4 years, 9 months ago (2016-03-10 12:16:31 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766503002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766503002/20001
4 years, 9 months ago (2016-03-10 19:55:47 UTC) #9
Dan Ehrenberg
PTAL https://codereview.chromium.org/1766503002/diff/1/test/message/testcfg.py File test/message/testcfg.py (right): https://codereview.chromium.org/1766503002/diff/1/test/message/testcfg.py#newcode99 test/message/testcfg.py:99: testpath = testcase.testpath On 2016/03/10 at 12:16:31, Michael ...
4 years, 9 months ago (2016-03-10 20:08:19 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_arm_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm_rel/builds/15154)
4 years, 9 months ago (2016-03-10 20:09:45 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766503002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766503002/40001
4 years, 9 months ago (2016-03-10 20:19:11 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 23:19:42 UTC) #16
Michael Achenbach
lgtm - maybe split CL desc into 2-3 paragraphs for readability. https://codereview.chromium.org/1766503002/diff/40001/test/test262/testcfg.py File test/test262/testcfg.py (right): ...
4 years, 9 months ago (2016-03-11 07:57:31 UTC) #17
Dan Ehrenberg
https://codereview.chromium.org/1766503002/diff/40001/test/test262/testcfg.py File test/test262/testcfg.py (right): https://codereview.chromium.org/1766503002/diff/40001/test/test262/testcfg.py#newcode182 test/test262/testcfg.py:182: for line in output.stdout.split("\n")[::-1]: On 2016/03/11 at 07:57:31, Michael ...
4 years, 9 months ago (2016-03-14 21:00:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1766503002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1766503002/60001
4 years, 9 months ago (2016-03-14 21:00:16 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-14 21:19:17 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-14 21:20:46 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f3568ca4005fb81431f74175715f34a460bba765
Cr-Commit-Position: refs/heads/master@{#34763}

Powered by Google App Engine
This is Rietveld 408576698