From 24d274983df9f7dbeebe8a890297d4f30d5bbca7 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Fri, 29 Nov 2019 18:33:41 -0800 Subject: Update spec test suite (#2484) This updates spec test suite to that of the current up-to-date version of https://github.com/WebAssembly/spec repo. - All failing tests are added in `BLACKLIST` in shared.py with reasons. - For tests that already existed and was passing and started failing after the update, we add the new test to the blacklist and preserve the old file by renaming it to 'old_[FILENAME].wast' not to lose test coverage. When the cause of the error is fixed or the unsupported construct gets support so the new test passes, we can delete the corresponding 'old_[FILENAME].wast' file. - Adds support for `spectest.print_[type] style imports. --- test/wasm2js/func_ptrs.2asm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/wasm2js/func_ptrs.2asm.js') diff --git a/test/wasm2js/func_ptrs.2asm.js b/test/wasm2js/func_ptrs.2asm.js index 230cb95ce..45e0a8697 100644 --- a/test/wasm2js/func_ptrs.2asm.js +++ b/test/wasm2js/func_ptrs.2asm.js @@ -1,4 +1,4 @@ -import { print } from 'spectest'; +import { print_i32 } from 'spectest'; function asmFunc(global, env, buffer) { var HEAP8 = new global.Int8Array(buffer); @@ -21,7 +21,7 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - var print = env.print; + var print = env.print_i32; function $3() { return 13 | 0; } @@ -51,7 +51,7 @@ function asmFunc(global, env, buffer) { } var memasmFunc = new ArrayBuffer(65536); -var retasmFunc = asmFunc({Math,Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,NaN,Infinity}, {abort:function() { throw new Error('abort'); },print},memasmFunc); +var retasmFunc = asmFunc({Math,Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,NaN,Infinity}, {abort:function() { throw new Error('abort'); },print_i32},memasmFunc); export var one = retasmFunc.one; export var two = retasmFunc.two; export var three = retasmFunc.three; -- cgit v1.2.3