Advertisement
kajacx

make test-js-api error

Apr 23rd, 2023
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.91 KB | None | 0 0
  1. kajacx@kajacx-VirtualBox:~/Rust/wasmer$ make test-js-api
  2. -----------
  3. INFORMATION
  4. -----------
  5.  
  6. Host Target: `x86_64-unknown-linux-gnu`.
  7. Enabled Compilers: cranelift, llvm, singlepass.
  8. Testing the following compilers & engines:
  9. * API: cranelift-universal llvm-universal singlepass-universal,
  10. * C-API: cranelift-universal.
  11. Cargo features:
  12. * Compilers: `--features cranelift,llvm,singlepass,wasmer-artifact-create,static-artifact-create,wasmer-artifact-load,static-artifact-load`.
  13. Rust version: rustc 1.65.0 (897e37553 2022-11-02).
  14. NodeJS version: v12.22.9.
  15. LLVM version: 15.0.7.
  16.  
  17.  
  18. --------------
  19. RULE EXECUTION
  20. --------------
  21.  
  22.  
  23. cd lib/api && wasm-pack test --node -- --no-default-features --features js-default,wat
  24. [INFO]: 🎯 Checking for the Wasm target...
  25. Finished dev [unoptimized + debuginfo] target(s) in 0.17s
  26. [INFO]: ⬇️ Installing wasm-bindgen...
  27. Finished test [unoptimized + debuginfo] target(s) in 0.17s
  28. Running unittests src/lib.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/wasmer-3989e7675eab05ae.wasm)
  29. no tests to run!
  30. Running tests/externals.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/externals-c2d60a89ea9a893f.wasm)
  31. Set timeout to 20 seconds...
  32. running 14 tests
  33.  
  34. test externals::function_new_dynamic_env_js ... ok
  35. test externals::function_new_dynamic_js ... ok
  36. test externals::function_new_env_js ... ok
  37. test externals::function_new_js ... ok
  38. test externals::memory_grow_js ... ok
  39. test externals::memory_new_js ... ok
  40. test externals::table_copy_js ... ok
  41. test externals::table_grow_js ... ok
  42. test externals::table_set_js ... ok
  43. test externals::table_get_js ... ok
  44. test externals::table_new_js ... ok
  45. test externals::global_set_js ... ok
  46. test externals::global_get_js ... ok
  47. test externals::global_new_js ... ok
  48.  
  49. test result: ok. 14 passed; 0 failed; 0 ignored
  50.  
  51. Running tests/function_env.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/function_env-4c5fec825bf2f379.wasm)
  52. Set timeout to 20 seconds...
  53. running 1 test
  54.  
  55. test function_env::data_and_store_mut_js ... ok
  56.  
  57. test result: ok. 1 passed; 0 failed; 0 ignored
  58.  
  59. Running tests/instance.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/instance-429fd70d8ebf766e.wasm)
  60. Set timeout to 20 seconds...
  61. running 2 tests
  62.  
  63. test instance::unit_native_function_env_js ... ok
  64. test instance::exports_work_after_multiple_instances_have_been_freed_js ... ok
  65.  
  66. test result: ok. 2 passed; 0 failed; 0 ignored
  67.  
  68. Running tests/module.rs (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/debug/deps/module-8fb1aba8d25d66b0.wasm)
  69. Set timeout to 20 seconds...
  70. running 6 tests
  71.  
  72. test module::module_custom_sections_js ... ok
  73. panicked at 'called `Result::unwrap()` on an `Err` value: "RuntimeError { source: Js(JsValue(TypeError: wasm function signature contains illegal type
  74. TypeError: wasm function signature contains illegal type
  75. at wasm-function[8]:0x150
  76. at /home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:802:33
  77. at handleError (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:366:18)
  78. at module.exports.__wbg_apply_aedce30790c00792 (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:801:67)
  79. at js_sys::Function::apply::h1ccefd431cdf806c (wasm-function[3556]:0x31bc19)
  80. at wasmer::js::typed_function::<impl wasmer::typed_function::TypedFunction<(),Rets>>::call::hce80533ef4329ee9 (wasm-function[193]:0xc37e8)
  81. at module::calling_host_functions_with_negative_values_works::h301a3454877b4595 (wasm-function[90]:0x3e774)
  82. at module::calling_host_functions_with_negative_values_works_js::heebbc2eef823b8fc (wasm-function[10886]:0x42425f)
  83. at core::ops::function::FnOnce::call_once::h7dd1893ce82c8d9f (wasm-function[13491]:0x449354)
  84. at wasm_bindgen_test::__rt::Context::execute_sync::{{closure}}::h329fa505a07b6cbd (wasm-function[4682]:0x365c8f))) }"', lib/api/tests/module.rs:165:1
  85.  
  86. Stack:
  87.  
  88. Error
  89. at /home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:694:17
  90. at logError (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:248:18)
  91. at module.exports.__wbg_new_abda76e883ba8a5f (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:693:65)
  92. at console_error_panic_hook::Error::new::h80103a0ea5767ee5 (wasm-function[11832]:0x433555)
  93. at console_error_panic_hook::hook_impl::he29bf2cad67335d5 (wasm-function[2786]:0x2d849c)
  94. at console_error_panic_hook::hook::hb73894f36d9e798d (wasm-function[13136]:0x444ae4)
  95. at core::ops::function::Fn::call::hbca81c2627faefbd (wasm-function[11145]:0x4284eb)
  96. at std::panicking::rust_panic_with_hook::h70a0e195f4db2a29 (wasm-function[5242]:0x383dbf)
  97. at std::panicking::begin_panic_handler::{{closure}}::hdcfc819ce836829e (wasm-function[6426]:0x3b7017)
  98. at std::sys_common::backtrace::__rust_end_short_backtrace::h53cabafab5b09ada (wasm-function[13523]:0x44991f)
  99.  
  100.  
  101. test module::calling_host_functions_with_negative_values_works_js ... FAIL
  102. test module::exports_js ... ok
  103. test module::imports_js ... ok
  104. test module::module_set_name_js ... ok
  105. test module::module_get_name_js ... ok
  106.  
  107. failures:
  108.  
  109. ---- module::calling_host_functions_with_negative_values_works_js output ----
  110. error output:
  111. panicked at 'called `Result::unwrap()` on an `Err` value: "RuntimeError { source: Js(JsValue(TypeError: wasm function signature contains illegal type
  112. TypeError: wasm function signature contains illegal type
  113. at wasm-function[8]:0x150
  114. at /home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:802:33
  115. at handleError (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:366:18)
  116. at module.exports.__wbg_apply_aedce30790c00792 (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:801:67)
  117. at js_sys::Function::apply::h1ccefd431cdf806c (wasm-function[3556]:0x31bc19)
  118. at wasmer::js::typed_function::<impl wasmer::typed_function::TypedFunction<(),Rets>>::call::hce80533ef4329ee9 (wasm-function[193]:0xc37e8)
  119. at module::calling_host_functions_with_negative_values_works::h301a3454877b4595 (wasm-function[90]:0x3e774)
  120. at module::calling_host_functions_with_negative_values_works_js::heebbc2eef823b8fc (wasm-function[10886]:0x42425f)
  121. at core::ops::function::FnOnce::call_once::h7dd1893ce82c8d9f (wasm-function[13491]:0x449354)
  122. at wasm_bindgen_test::__rt::Context::execute_sync::{{closure}}::h329fa505a07b6cbd (wasm-function[4682]:0x365c8f))) }"', lib/api/tests/module.rs:165:1
  123.  
  124. Stack:
  125.  
  126. Error
  127. at /home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:694:17
  128. at logError (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:248:18)
  129. at module.exports.__wbg_new_abda76e883ba8a5f (/home/kajacx/Rust/wasmer/target/wasm32-unknown-unknown/wbg-tmp/wasm-bindgen-test.js:693:65)
  130. at console_error_panic_hook::Error::new::h80103a0ea5767ee5 (wasm-function[11832]:0x433555)
  131. at console_error_panic_hook::hook_impl::he29bf2cad67335d5 (wasm-function[2786]:0x2d849c)
  132. at console_error_panic_hook::hook::hb73894f36d9e798d (wasm-function[13136]:0x444ae4)
  133. at core::ops::function::Fn::call::hbca81c2627faefbd (wasm-function[11145]:0x4284eb)
  134. at std::panicking::rust_panic_with_hook::h70a0e195f4db2a29 (wasm-function[5242]:0x383dbf)
  135. at std::panicking::begin_panic_handler::{{closure}}::hdcfc819ce836829e (wasm-function[6426]:0x3b7017)
  136. at std::sys_common::backtrace::__rust_end_short_backtrace::h53cabafab5b09ada (wasm-function[13523]:0x44991f)
  137.  
  138.  
  139.  
  140. JS exception that was thrown:
  141. RuntimeError: unreachable
  142. at __rust_start_panic (wasm-function[14836]:0x453a90)
  143. at rust_panic (wasm-function[14027]:0x44e961)
  144. at std::panicking::rust_panic_with_hook::h70a0e195f4db2a29 (wasm-function[5242]:0x383dea)
  145. at std::panicking::begin_panic_handler::{{closure}}::hdcfc819ce836829e (wasm-function[6426]:0x3b7017)
  146. at std::sys_common::backtrace::__rust_end_short_backtrace::h53cabafab5b09ada (wasm-function[13523]:0x44991f)
  147. at rust_begin_unwind (wasm-function[9493]:0x40a628)
  148. at core::panicking::panic_fmt::h751be80779d42b53 (wasm-function[12735]:0x43f8de)
  149. at core::result::unwrap_failed::h2dc706d948c22960 (wasm-function[7243]:0x3d314c)
  150. at core::result::Result<T,E>::unwrap::h5516ece679868382 (wasm-function[5769]:0x39c178)
  151. at module::calling_host_functions_with_negative_values_works_js::heebbc2eef823b8fc (wasm-function[10886]:0x424270)
  152.  
  153. failures:
  154.  
  155. module::calling_host_functions_with_negative_values_works_js
  156.  
  157. test result: FAILED. 5 passed; 1 failed; 0 ignored
  158.  
  159. error: test failed, to rerun pass `--test module`
  160.  
  161. Caused by:
  162. 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)
  163. Error: Running Wasm tests with wasm-bindgen-test failed
  164. Caused by: Running Wasm tests with wasm-bindgen-test failed
  165. Caused by: failed to execute `cargo test`: exited with exit status: 1
  166. 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"
  167. make: *** [Makefile:544: test-js-api] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement