mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-24 06:01:33 +00:00
Add debug code for CI
This commit is contained in:
4
Makefile
4
Makefile
@ -70,13 +70,13 @@ wasitests-singlepass: wasitests-setup
|
|||||||
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features singlepass -- --test-threads=1
|
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features singlepass -- --test-threads=1
|
||||||
|
|
||||||
wasitests-cranelift: wasitests-setup
|
wasitests-cranelift: wasitests-setup
|
||||||
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features clif -- --test-threads=1
|
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features clif -- --test-threads=1 --nocapture
|
||||||
|
|
||||||
wasitests-llvm: wasitests-setup
|
wasitests-llvm: wasitests-setup
|
||||||
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features llvm -- --test-threads=1
|
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features llvm -- --test-threads=1
|
||||||
|
|
||||||
wasitests-unit:
|
wasitests-unit:
|
||||||
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features clif -- --test-threads=1
|
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features clif -- --test-threads=1 --nocapture
|
||||||
cargo test --manifest-path lib/wasi/Cargo.toml --release
|
cargo test --manifest-path lib/wasi/Cargo.toml --release
|
||||||
|
|
||||||
wasitests: wasitests-unit wasitests-singlepass wasitests-cranelift wasitests-llvm
|
wasitests: wasitests-unit wasitests-singlepass wasitests-cranelift wasitests-llvm
|
||||||
|
@ -42,6 +42,8 @@ pub fn generate_import_object(
|
|||||||
) -> ImportObject {
|
) -> ImportObject {
|
||||||
let state_gen = move || {
|
let state_gen = move || {
|
||||||
fn state_destructor(data: *mut c_void) {
|
fn state_destructor(data: *mut c_void) {
|
||||||
|
dbg!("IN DESTRUCTOR");
|
||||||
|
dbg!(&data);
|
||||||
unsafe {
|
unsafe {
|
||||||
drop(Box::from_raw(data as *mut WasiState));
|
drop(Box::from_raw(data as *mut WasiState));
|
||||||
}
|
}
|
||||||
@ -52,6 +54,7 @@ pub fn generate_import_object(
|
|||||||
args: args.clone(),
|
args: args.clone(),
|
||||||
envs: envs.clone(),
|
envs: envs.clone(),
|
||||||
});
|
});
|
||||||
|
dbg!("IN CONSTRUCTOR");
|
||||||
|
|
||||||
(
|
(
|
||||||
Box::into_raw(state) as *mut c_void,
|
Box::into_raw(state) as *mut c_void,
|
||||||
|
Reference in New Issue
Block a user