From a3a03dd23b2ad4a2d9855e577f96c5d5f2d54efd Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Tue, 22 Aug 2017 07:03:25 -0700 Subject: [PATCH] Only run tests for deprecated features when they are enabled. (#707) In this case: notify, channel and tick are all deprecated. --- test/mod.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/mod.rs b/test/mod.rs index c885cd8a2..a24f78f9d 100644 --- a/test/mod.rs +++ b/test/mod.rs @@ -22,21 +22,25 @@ mod test_double_register; mod test_echo_server; mod test_local_addr_ready; mod test_multicast; -mod test_notify; mod test_oneshot; mod test_poll; -mod test_poll_channel; mod test_register_deregister; mod test_register_multiple_event_loops; mod test_reregister_without_poll; mod test_smoke; mod test_tcp; mod test_tcp_level; -mod test_tick; mod test_udp_level; mod test_udp_socket; mod test_write_then_drop; +#[cfg(feature = "with-deprecated")] +mod test_notify; +#[cfg(feature = "with-deprecated")] +mod test_poll_channel; +#[cfg(feature = "with-deprecated")] +mod test_tick; + // The following tests are for deprecated features. Only run these tests on // platforms that were supported from before the features were deprecated #[cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))]