Fix test in coverage build
This commit is contained in:
@ -6,12 +6,6 @@ use libloading;
|
|||||||
use solana_program_interface::account::KeyedAccount;
|
use solana_program_interface::account::KeyedAccount;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
|
||||||
const CARGO_PROFILE: &str = "debug";
|
|
||||||
|
|
||||||
#[cfg(not(debug_assertions))]
|
|
||||||
const CARGO_PROFILE: &str = "release";
|
|
||||||
|
|
||||||
/// Dynamic link library prefix
|
/// Dynamic link library prefix
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
const PLATFORM_FILE_PREFIX: &str = "lib";
|
const PLATFORM_FILE_PREFIX: &str = "lib";
|
||||||
@ -30,9 +24,10 @@ const PLATFORM_FILE_EXTENSION: &str = "dll";
|
|||||||
|
|
||||||
/// Creates a platform-specific file path
|
/// Creates a platform-specific file path
|
||||||
fn create_library_path(name: &str) -> PathBuf {
|
fn create_library_path(name: &str) -> PathBuf {
|
||||||
let mut path = PathBuf::new();
|
let mut path = PathBuf::from(env!("OUT_DIR"));
|
||||||
path.push("target");
|
path.pop();
|
||||||
path.push(CARGO_PROFILE);
|
path.pop();
|
||||||
|
path.pop();
|
||||||
path.push("deps");
|
path.push("deps");
|
||||||
path.push(PLATFORM_FILE_PREFIX.to_string() + name);
|
path.push(PLATFORM_FILE_PREFIX.to_string() + name);
|
||||||
path.set_extension(PLATFORM_FILE_EXTENSION);
|
path.set_extension(PLATFORM_FILE_EXTENSION);
|
||||||
|
Reference in New Issue
Block a user