Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kajacx@kajacx-VirtualBox:~/Rust/wasmer$ make test-js-api
- -----------
- INFORMATION
- -----------
- Host Target: `x86_64-unknown-linux-gnu`.
- Enabled Compilers: cranelift, llvm, singlepass.
- Testing the following compilers & engines:
- * API: cranelift-universal llvm-universal singlepass-universal,
- * C-API: cranelift-universal.
- Cargo features:
- * Compilers: `--features cranelift,llvm,singlepass,wasmer-artifact-create,static-artifact-create,wasmer-artifact-load,static-artifact-load`.
- Rust version: rustc 1.65.0 (897e37553 2022-11-02).
- NodeJS version: v12.22.9.
- LLVM version: 15.0.7.
- --------------
- RULE EXECUTION
- --------------
- cd lib/api && wasm-pack test --node -- --no-default-features --features js-default,wat
- [INFO]: 🎯 Checking for the Wasm target...
- Finished dev [unoptimized + debuginfo] target(s) in 0.17s
- [INFO]: ⬇️ Installing wasm-bindgen...
- Finished test [unoptimized + debuginfo] target(s) in 0.17s
- Running unittests src/lib.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/wasmer-3989e7675eab05ae.wasm)
- no tests to run!
- Running tests/externals.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/externals-c2d60a89ea9a893f.wasm)
- Set timeout to 20 seconds...
- running 14 tests
- test externals::function_new_dynamic_env_js ... ok
- test externals::function_new_dynamic_js ... ok
- test externals::function_new_env_js ... ok
- test externals::function_new_js ... ok
- test externals::memory_grow_js ... ok
- test externals::memory_new_js ... ok
- test externals::table_copy_js ... ok
- test externals::table_grow_js ... ok
- test externals::table_set_js ... ok
- test externals::table_get_js ... ok
- test externals::table_new_js ... ok
- test externals::global_set_js ... ok
- test externals::global_get_js ... ok
- test externals::global_new_js ... ok
- test result: ok. 14 passed; 0 failed; 0 ignored
- Running tests/function_env.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/function_env-4c5fec825bf2f379.wasm)
- Set timeout to 20 seconds...
- running 1 test
- test function_env::data_and_store_mut_js ... ok
- test result: ok. 1 passed; 0 failed; 0 ignored
- Running tests/instance.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/instance-429fd70d8ebf766e.wasm)
- Set timeout to 20 seconds...
- running 2 tests
- test instance::unit_native_function_env_js ... ok
- test instance::exports_work_after_multiple_instances_have_been_freed_js ... ok
- test result: ok. 2 passed; 0 failed; 0 ignored
- Running tests/module.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/module-8fb1aba8d25d66b0.wasm)
- Set timeout to 20 seconds...
- running 6 tests
- test module::module_custom_sections_js ... ok
- panicked at 'called `Result::unwrap()` on an `Err` value: "RuntimeError { source: Js(JsValue(TypeError: wasm function signature contains illegal type
- TypeError: wasm function signature contains illegal type
- at wasm-function[8]:0x150
- at /home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:802:33
- at handleError (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:366:18)
- at module.exports.__wbg_apply_aedce30790c00792 (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:801:67)
- at js_sys::Function::apply::h1ccefd431cdf806c (wasm-function[3556]:0x31bc19)
- at wasmer::js::typed_function::<impl wasmer::typed_function::TypedFunction<(),Rets>>::call::hce80533ef4329ee9 (wasm-function[193]:0xc37e8)
- at module::calling_host_functions_with_negative_values_works::h301a3454877b4595 (wasm-function[90]:0x3e774)
- at module::calling_host_functions_with_negative_values_works_js::heebbc2eef823b8fc (wasm-function[10886]:0x42425f)
- at core::ops::function::FnOnce::call_once::h7dd1893ce82c8d9f (wasm-function[13491]:0x449354)
- at wasm_bindgen_test::__rt::Context::execute_sync::{{closure}}::h329fa505a07b6cbd (wasm-function[4682]:0x365c8f))) }"', lib/api/tests/module.rs:165:1
- Stack:
- Error
- at /home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:694:17
- at logError (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:248:18)
- at module.exports.__wbg_new_abda76e883ba8a5f (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:693:65)
- at console_error_panic_hook::Error::new::h80103a0ea5767ee5 (wasm-function[11832]:0x433555)
- at console_error_panic_hook::hook_impl::he29bf2cad67335d5 (wasm-function[2786]:0x2d849c)
- at console_error_panic_hook::hook::hb73894f36d9e798d (wasm-function[13136]:0x444ae4)
- at core::ops::function::Fn::call::hbca81c2627faefbd (wasm-function[11145]:0x4284eb)
- at std::panicking::rust_panic_with_hook::h70a0e195f4db2a29 (wasm-function[5242]:0x383dbf)
- at std::panicking::begin_panic_handler::{{closure}}::hdcfc819ce836829e (wasm-function[6426]:0x3b7017)
- at std::sys_common::backtrace::__rust_end_short_backtrace::h53cabafab5b09ada (wasm-function[13523]:0x44991f)
- test module::calling_host_functions_with_negative_values_works_js ... FAIL
- test module::exports_js ... ok
- test module::imports_js ... ok
- test module::module_set_name_js ... ok
- test module::module_get_name_js ... ok
- failures:
- ---- module::calling_host_functions_with_negative_values_works_js output ----
- error output:
- panicked at 'called `Result::unwrap()` on an `Err` value: "RuntimeError { source: Js(JsValue(TypeError: wasm function signature contains illegal type
- TypeError: wasm function signature contains illegal type
- at wasm-function[8]:0x150
- at /home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:802:33
- at handleError (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:366:18)
- at module.exports.__wbg_apply_aedce30790c00792 (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:801:67)
- at js_sys::Function::apply::h1ccefd431cdf806c (wasm-function[3556]:0x31bc19)
- at wasmer::js::typed_function::<impl wasmer::typed_function::TypedFunction<(),Rets>>::call::hce80533ef4329ee9 (wasm-function[193]:0xc37e8)
- at module::calling_host_functions_with_negative_values_works::h301a3454877b4595 (wasm-function[90]:0x3e774)
- at module::calling_host_functions_with_negative_values_works_js::heebbc2eef823b8fc (wasm-function[10886]:0x42425f)
- at core::ops::function::FnOnce::call_once::h7dd1893ce82c8d9f (wasm-function[13491]:0x449354)
- at wasm_bindgen_test::__rt::Context::execute_sync::{{closure}}::h329fa505a07b6cbd (wasm-function[4682]:0x365c8f))) }"', lib/api/tests/module.rs:165:1
- Stack:
- Error
- at /home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:694:17
- at logError (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:248:18)
- at module.exports.__wbg_new_abda76e883ba8a5f (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:693:65)
- at console_error_panic_hook::Error::new::h80103a0ea5767ee5 (wasm-function[11832]:0x433555)
- at console_error_panic_hook::hook_impl::he29bf2cad67335d5 (wasm-function[2786]:0x2d849c)
- at console_error_panic_hook::hook::hb73894f36d9e798d (wasm-function[13136]:0x444ae4)
- at core::ops::function::Fn::call::hbca81c2627faefbd (wasm-function[11145]:0x4284eb)
- at std::panicking::rust_panic_with_hook::h70a0e195f4db2a29 (wasm-function[5242]:0x383dbf)
- at std::panicking::begin_panic_handler::{{closure}}::hdcfc819ce836829e (wasm-function[6426]:0x3b7017)
- at std::sys_common::backtrace::__rust_end_short_backtrace::h53cabafab5b09ada (wasm-function[13523]:0x44991f)
- JS exception that was thrown:
- RuntimeError: unreachable
- at __rust_start_panic (wasm-function[14836]:0x453a90)
- at rust_panic (wasm-function[14027]:0x44e961)
- at std::panicking::rust_panic_with_hook::h70a0e195f4db2a29 (wasm-function[5242]:0x383dea)
- at std::panicking::begin_panic_handler::{{closure}}::hdcfc819ce836829e (wasm-function[6426]:0x3b7017)
- at std::sys_common::backtrace::__rust_end_short_backtrace::h53cabafab5b09ada (wasm-function[13523]:0x44991f)
- at rust_begin_unwind (wasm-function[9493]:0x40a628)
- at core::panicking::panic_fmt::h751be80779d42b53 (wasm-function[12735]:0x43f8de)
- at core::result::unwrap_failed::h2dc706d948c22960 (wasm-function[7243]:0x3d314c)
- at core::result::Result<T,E>::unwrap::h5516ece679868382 (wasm-function[5769]:0x39c178)
- at module::calling_host_functions_with_negative_values_works_js::heebbc2eef823b8fc (wasm-function[10886]:0x424270)
- failures:
- module::calling_host_functions_with_negative_values_works_js
- test result: FAILED. 5 passed; 1 failed; 0 ignored
- error: test failed, to rerun pass `--test module`
- Caused by:
- process didn't exit successfully: `/home/kajacx/.cache/.wasm-pack/wasm-bindgen-5f26acfc988649a3/wasm-bindgen-test-runner /home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/module-8fb1aba8d25d66b0.wasm` (exit status: 1)
- Error: Running Wasm tests with wasm-bindgen-test failed
- Caused by: Running Wasm tests with wasm-bindgen-test failed
- Caused by: failed to execute `cargo test`: exited with exit status: 1
- full command: cd "/home/kajacx/Rust/wasmer/lib/api" && CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER="/home/kajacx/.cache/.wasm-pack/wasm-bindgen-5f26acfc988649a3/wasm-bindgen-test-runner" WASM_BINDGEN_TEST_ONLY_NODE="1" "cargo" "test" "--target" "wasm32-unknown-unknown" "--no-default-features" "--features" "js-default,wat"
- make: *** [Makefile:544: test-js-api] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement