We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c18432 commit b1ad2c8Copy full SHA for b1ad2c8
tests/macros.rs
@@ -16,7 +16,7 @@ macro_rules! util_name {
16
#[macro_export]
17
macro_rules! new_cmd {
18
() => {
19
- Command::main_binary().unwrap().arg(util_name!())
+ Command::new(&*::BIN_PATH).arg(util_name!())
20
};
21
}
22
tests/tests.rs
@@ -18,6 +18,12 @@ extern crate predicates;
#[macro_use]
mod macros;
+use std::path::PathBuf;
+use assert_cmd::cargo;
23
+
24
+lazy_static! {
25
+ pub static ref BIN_PATH: PathBuf = cargo::main_binary_path().unwrap();
26
+}
27
include!("../libmesabox/src/util/build/import.rs");
28
29
macro_rules! generate_fns {
0 commit comments