Ignore expansion test if cargo-expand subcommand isn't present

This commit is contained in:
Evgenii P
2019-11-03 20:31:08 +08:00
parent 640f8e0e82
commit 9a0e4e0176
3 changed files with 30 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
#[cfg(not(target_os = "emscripten"))]
#[rustversion::attr(not(nightly), ignore)]
#[cfg_attr(not(cargo_expand), ignore)]
#[test]
fn expandtest() {
macrotest::expand("tests/expand/**/enum/*.rs");