diff --git a/clap_complete/tests/testsuite/bash.rs b/clap_complete/tests/testsuite/bash.rs index 8de094fe937..b2c50c41bfb 100644 --- a/clap_complete/tests/testsuite/bash.rs +++ b/clap_complete/tests/testsuite/bash.rs @@ -249,7 +249,7 @@ fn complete() { } #[test] -#[cfg(unix)] +#[cfg(all(unix, feature = "unstable-command"))] fn register_dynamic_completion() { common::register_example::("dynamic", "exhaustive"); } diff --git a/clap_complete/tests/testsuite/elvish.rs b/clap_complete/tests/testsuite/elvish.rs index 9feeb0b4145..b953fd8bcfa 100644 --- a/clap_complete/tests/testsuite/elvish.rs +++ b/clap_complete/tests/testsuite/elvish.rs @@ -175,8 +175,8 @@ value value assert_data_eq!(actual, expected); } -#[cfg(all(unix, feature = "unstable-command"))] #[test] +#[cfg(all(unix, feature = "unstable-command"))] fn register_dynamic() { common::register_example::("dynamic", "exhaustive"); } diff --git a/clap_complete/tests/testsuite/fish.rs b/clap_complete/tests/testsuite/fish.rs index f27db021934..a4eaddab126 100644 --- a/clap_complete/tests/testsuite/fish.rs +++ b/clap_complete/tests/testsuite/fish.rs @@ -165,8 +165,8 @@ bash (bash (shell)) fish (fish shell) zsh (zsh shell)"#; assert_data_eq!(actual, expected); } -#[cfg(all(unix, feature = "unstable-command"))] #[test] +#[cfg(all(unix, feature = "unstable-command"))] fn register_dynamic() { common::register_example::("dynamic", "exhaustive"); } diff --git a/clap_complete/tests/testsuite/zsh.rs b/clap_complete/tests/testsuite/zsh.rs index b5abb971010..d0b2f503ef0 100644 --- a/clap_complete/tests/testsuite/zsh.rs +++ b/clap_complete/tests/testsuite/zsh.rs @@ -163,8 +163,8 @@ pacman action alias value quote hint last -- assert_data_eq!(actual, expected); } -#[cfg(all(unix, feature = "unstable-command"))] #[test] +#[cfg(all(unix, feature = "unstable-command"))] fn register_dynamic() { common::register_example::("dynamic", "exhaustive"); }