aboutsummaryrefslogtreecommitdiff
path: root/tests/expandtest.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expandtest.rs')
-rw-r--r--tests/expandtest.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/expandtest.rs b/tests/expandtest.rs
index 3f0d5c1..adf8dde 100644
--- a/tests/expandtest.rs
+++ b/tests/expandtest.rs
@@ -6,8 +6,6 @@ use std::{
process::{Command, ExitStatus, Stdio},
};
-const PATH: &str = "tests/expand/**/*.rs";
-
#[rustversion::attr(not(nightly), ignore)]
#[test]
fn expandtest() {
@@ -15,17 +13,17 @@ fn expandtest() {
let cargo = &*env::var("CARGO").unwrap_or_else(|_| "cargo".into());
if !has_command(&[cargo, "expand"]) || !has_command(&[cargo, "fmt"]) {
if is_ci {
- panic!("expandtest requires rustfmt and cargo-expand");
+ panic!("expandtest requires rustfmt and cargo-expand")
}
return;
}
- let args = &["--all-features"];
+ let path = "tests/expand/*/*.rs";
if is_ci {
- macrotest::expand_without_refresh_args(PATH, args);
+ macrotest::expand_without_refresh(path);
} else {
env::set_var("MACROTEST", "overwrite");
- macrotest::expand_args(PATH, args);
+ macrotest::expand(path);
}
}