Bug 173382 - WebAssembly: remove empty test files
Summary: WebAssembly: remove empty test files
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: JF Bastien
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-06-14 12:59 PDT by JF Bastien
Modified: 2017-06-14 13:17 PDT (History)
8 users (show)

See Also:


Attachments
patch (3.34 KB, patch)
2017-06-14 13:04 PDT, JF Bastien
saam: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff
patch (3.34 KB, patch)
2017-06-14 13:08 PDT, JF Bastien
commit-queue: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description JF Bastien 2017-06-14 12:59:28 PDT
The following files:
	JSTests/wasm/function-tests/call-indirect-params.js
	JSTests/wasm/function-tests/call-indirect.js
	JSTests/wasm/js-api/call-indirect-results.js
Were changed to empty files in https://trac.webkit.org/changeset/209771

They were testing call-indirect with the wrong semantics, before we implemented tables. That change implemented tables and therefore removed the erroneous tests.

We have a few tests for call_indirect which already do the right thing:

	JSTests/wasm/function-tests/context-switch.js
	JSTests/wasm/function-tests/exceptions.js
	JSTests/wasm/function-tests/grow-memory-2.js
	JSTests/wasm/function-tests/stack-overflow.js
	JSTests/wasm/function-tests/table-basic-2.js
	JSTests/wasm/function-tests/table-basic.js
	JSTests/wasm/js-api/call-indirect.js
	JSTests/wasm/js-api/table.js
	JSTests/wasm/js-api/unique-signature.js
	JSTests/wasm/js-api/wrapper-function.js

I also just imported the updated spec tests which, among other things, test call_indirect:

	core/br.wast
	core/br_table.wast
	core/call_indirect.wast
	core/func.wast
	core/func_ptrs.wast
	core/imports.wast
	core/left-to-right.wast
	core/linking.wast
	core/nop.wast
	core/return.wast
	core/typecheck.wast
	core/unreachable.wast

So I think it's OK to just delete the tests which should just have been deleted back when tables were added.
Comment 1 JF Bastien 2017-06-14 13:03:15 PDT
<rdar://problem/32659199>
Comment 2 JF Bastien 2017-06-14 13:04:49 PDT
Created attachment 312915 [details]
patch
Comment 3 WebKit Commit Bot 2017-06-14 13:08:22 PDT
Comment on attachment 312915 [details]
patch

Rejecting attachment 312915 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 312915, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
file JSTests/ChangeLog
patch: **** Only garbage was found in the patch input.
rm 'JSTests/wasm/function-tests/call-indirect-params.js'
patch: **** Only garbage was found in the patch input.
rm 'JSTests/wasm/function-tests/call-indirect.js'
patch: **** Only garbage was found in the patch input.
rm 'JSTests/wasm/js-api/call-indirect-results.js'

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Saam Barati']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/3931114
Comment 4 JF Bastien 2017-06-14 13:08:28 PDT
Created attachment 312916 [details]
patch
Comment 5 WebKit Commit Bot 2017-06-14 13:10:51 PDT
Comment on attachment 312916 [details]
patch

Rejecting attachment 312916 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'apply-attachment', '--no-update', '--non-interactive', 312916, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
 from patch file(s).
patching file JSTests/ChangeLog
patch: **** Only garbage was found in the patch input.
rm 'JSTests/wasm/function-tests/call-indirect-params.js'
patch: **** Only garbage was found in the patch input.
rm 'JSTests/wasm/function-tests/call-indirect.js'
patch: **** Only garbage was found in the patch input.
rm 'JSTests/wasm/js-api/call-indirect-results.js'

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/3931125
Comment 6 JF Bastien 2017-06-14 13:16:41 PDT
Committed manually in https://trac.webkit.org/r218290