Skip to content

Commit

Permalink
Only run tests for deprecated features when they are enabled. (tokio-…
Browse files Browse the repository at this point in the history
…rs#707)

In this case: notify, channel and tick are all deprecated.
  • Loading branch information
ahmedcharles authored and alexcrichton committed Aug 22, 2017
1 parent 2ed8722 commit a3a03dd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down

0 comments on commit a3a03dd

Please sign in to comment.