From 28642896c54b05fb69742679647abb35177a34b7 Mon Sep 17 00:00:00 2001 From: chenyukang Date: Fri, 4 Jun 2021 17:41:25 +0800 Subject: [PATCH] fix path with target --- tests/integration/cli/src/assets.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/integration/cli/src/assets.rs b/tests/integration/cli/src/assets.rs index 1b070de5c85..e399cf45414 100644 --- a/tests/integration/cli/src/assets.rs +++ b/tests/integration/cli/src/assets.rs @@ -3,12 +3,16 @@ use std::path::PathBuf; pub const C_ASSET_PATH: &str = concat!( env!("CARGO_MANIFEST_DIR"), - "/../../../lib/c-api/examples/assets" + "/../../../lib/c-api/tests/assets" ); pub const ASSET_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../../../tests/examples"); pub const WASMER_INCLUDE_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../../../lib/c-api"); +#[cfg(feature = "debug")] +pub const WASMER_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/../../../target/debug/wasmer"); + +#[cfg(not(feature = "release"))] pub const WASMER_PATH: &str = concat!( env!("CARGO_MANIFEST_DIR"), "/../../../target/release/wasmer"