1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Agathe Porte <gagath@debian.org>
Subject: Only test zippychord when feature is enabled
One can activate a specific set of features so that the zippychord_sim_tests
test is run without the zippychord feature being enabled. This leads to a
runtime error saying that the zippychord feature was not enabled when trying to
run the tests with this specific feature set.
Add an additional cfg feature gate in front of the zippychord_sim_tests module
to prevent this failure.
Forwarded: https://github.com/jtroo/kanata/pull/1687
--- a/src/tests/sim_tests/mod.rs
+++ b/src/tests/sim_tests/mod.rs
@@ -30,6 +30,7 @@
mod unmod_sim_tests;
mod use_defsrc_sim_tests;
mod vkey_sim_tests;
+#[cfg(feature = "zippychord")]
mod zippychord_sim_tests;
fn simulate<S: AsRef<str>>(cfg: S, sim: S) -> String {
|