diff options
-rw-r--r-- | .cirrus.yml | 5 | ||||
-rw-r--r-- | azure-pipelines.yml | 6 | ||||
-rw-r--r-- | tokio-tcp/tests/chain.rs | 1 | ||||
-rw-r--r-- | tokio-tcp/tests/echo.rs | 1 | ||||
-rw-r--r-- | tokio-tcp/tests/limit.rs | 1 | ||||
-rw-r--r-- | tokio-tcp/tests/stream-buffered.rs | 1 | ||||
-rw-r--r-- | tokio-tcp/tests/tcp.rs | 1 | ||||
-rw-r--r-- | tokio-test/src/macros.rs | 41 | ||||
-rw-r--r-- | tokio-test/tests/clock.rs | 1 | ||||
-rw-r--r-- | tokio-test/tests/macros.rs | 40 | ||||
-rw-r--r-- | tokio-timer/tests/clock.rs | 1 | ||||
-rw-r--r-- | tokio-timer/tests/deadline.rs | 1 | ||||
-rw-r--r-- | tokio-timer/tests/delay.rs | 1 | ||||
-rw-r--r-- | tokio-timer/tests/hammer.rs | 1 | ||||
-rw-r--r-- | tokio-timer/tests/interval.rs | 1 | ||||
-rw-r--r-- | tokio-timer/tests/queue.rs | 1 | ||||
-rw-r--r-- | tokio-timer/tests/throttle.rs | 1 | ||||
-rw-r--r-- | tokio-timer/tests/timeout.rs | 1 |
18 files changed, 59 insertions, 47 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 75eccc81..125afa4c 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -12,7 +12,8 @@ task: setup_script: - pkg install -y curl - curl https://sh.rustup.rs -sSf --output rustup.sh - - sh rustup.sh -y --default-toolchain nightly + # TODO: switch back to nightly + - sh rustup.sh -y --default-toolchain nightly-2019-06-10 - . $HOME/.cargo/env - rustup target add i686-unknown-freebsd - | @@ -32,8 +33,6 @@ task: test_script: - . $HOME/.cargo/env - cargo test --all --lib && cargo test --all --tests - - (cd tokio-trace/test-log-support && cargo test) - - (cd tokio-trace/test_static_max_level_features && cargo test) - cargo doc --all # TODO: Re-enable # i686_test_script: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c39e8ca6..be2b8443 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -31,7 +31,7 @@ jobs: # - tokio-fs - tokio-reactor # - tokio-signal -# - tokio-tcp + - tokio-tcp # - tokio-tls - tokio-udp # - tokio-uds @@ -51,8 +51,8 @@ jobs: - tokio-macros - tokio-sync # - tokio-threadpool - # - tokio-timer - # - tokio-test + - tokio-timer + - tokio-test # - tokio-trace # - tokio-trace/tokio-trace-core # - tokio-trace/test-log-support diff --git a/tokio-tcp/tests/chain.rs b/tokio-tcp/tests/chain.rs index a8531058..3c9b9297 100644 --- a/tokio-tcp/tests/chain.rs +++ b/tokio-tcp/tests/chain.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] use futures::stream::Stream; use futures::Future; diff --git a/tokio-tcp/tests/echo.rs b/tokio-tcp/tests/echo.rs index 42a00d2b..cebd366f 100644 --- a/tokio-tcp/tests/echo.rs +++ b/tokio-tcp/tests/echo.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] use env_logger; use futures::stream::Stream; diff --git a/tokio-tcp/tests/limit.rs b/tokio-tcp/tests/limit.rs index 63ac8fd0..47fa5650 100644 --- a/tokio-tcp/tests/limit.rs +++ b/tokio-tcp/tests/limit.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] use futures::stream::Stream; use futures::Future; diff --git a/tokio-tcp/tests/stream-buffered.rs b/tokio-tcp/tests/stream-buffered.rs index df2fe98f..d3032303 100644 --- a/tokio-tcp/tests/stream-buffered.rs +++ b/tokio-tcp/tests/stream-buffered.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] use env_logger; use futures::stream::Stream; diff --git a/tokio-tcp/tests/tcp.rs b/tokio-tcp/tests/tcp.rs index b35baf46..99211972 100644 --- a/tokio-tcp/tests/tcp.rs +++ b/tokio-tcp/tests/tcp.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] use env_logger; use futures::{Future, Stream}; diff --git a/tokio-test/src/macros.rs b/tokio-test/src/macros.rs index 722bbd68..ff3b6eb2 100644 --- a/tokio-test/src/macros.rs +++ b/tokio-test/src/macros.rs @@ -112,44 +112,3 @@ macro_rules! assert_elapsed { }; } */ - -#[cfg(test)] -mod tests { - use futures::{future, Async, Future, Poll}; - - #[test] - fn assert_ready() { - let mut fut = future::ok::<(), ()>(()); - assert_ready!(fut.poll()); - let mut fut = future::ok::<(), ()>(()); - assert_ready!(fut.poll(), "some message"); - } - - #[test] - #[should_panic] - fn assert_ready_err() { - let mut fut = future::err::<(), ()>(()); - assert_ready!(fut.poll()); - } - - #[test] - fn assert_not_ready() { - let poll: Poll<(), ()> = Ok(Async::NotReady); - assert_not_ready!(poll); - assert_not_ready!(poll, "some message"); - } - - #[test] - #[should_panic] - fn assert_not_ready_err() { - let mut fut = future::err::<(), ()>(()); - assert_not_ready!(fut.poll()); - } - - #[test] - fn assert_ready_eq() { - let mut fut = future::ok::<(), ()>(()); - assert_ready_eq!(fut.poll(), ()); - } - -} diff --git a/tokio-test/tests/clock.rs b/tokio-test/tests/clock.rs index a57edd72..082ce311 100644 --- a/tokio-test/tests/clock.rs +++ b/tokio-test/tests/clock.rs @@ -1,3 +1,4 @@ +#![cfg(feature = "broken")] #![deny(warnings, rust_2018_idioms)] use futures::Future; diff --git a/tokio-test/tests/macros.rs b/tokio-test/tests/macros.rs new file mode 100644 index 00000000..2dd519eb --- /dev/null +++ b/tokio-test/tests/macros.rs @@ -0,0 +1,40 @@ +#![cfg(feature = "broken")] +#![deny(warnings, rust_2018_idioms)] + +use tokio_macros::{assert_ready, assert_not_ready, assert_ready_eq}; +use futures::{future, Async, Future, Poll}; + +#[test] +fn assert_ready() { + let mut fut = future::ok::<(), ()>(()); + assert_ready!(fut.poll()); + let mut fut = future::ok::<(), ()>(()); + assert_ready!(fut.poll(), "some message"); +} + +#[test] +#[should_panic] +fn assert_ready_err() { + let mut fut = future::err::<(), ()>(()); + assert_ready!(fut.poll()); +} + +#[test] +fn assert_not_ready() { + let poll: Poll<(), ()> = Ok(Async::NotReady); + assert_not_ready!(poll); + assert_not_ready!(poll, "some message"); +} + +#[test] +#[should_panic] +fn assert_not_ready_err() { + let mut fut = future::err::<(), ()>(()); + assert_not_ready!(fut.poll()); +} + +#[test] +fn assert_ready_eq() { + let mut fut = future::ok::<(), ()>(()); + assert_ready_eq!(fut.poll(), ()); +} diff --git a/tokio-timer/tests/clock.rs b/tokio-timer/tests/clock.rs index d75f3d37..d1607ba3 100644 --- a/tokio-timer/tests/clock.rs +++ b/tokio-timer/tests/clock.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] use std::time::Instant; use tokio_executor; diff --git a/tokio-timer/tests/deadline.rs b/tokio-timer/tests/deadline.rs index 712cc5f3..bdadc88a 100644 --- a/tokio-timer/tests/deadline.rs +++ b/tokio-timer/tests/deadline.rs @@ -1,5 +1,6 @@ #![deny(warnings, rust_2018_idioms)] #![allow(deprecated)] +#![cfg(feature = "broken")] mod support; use crate::support::*; diff --git a/tokio-timer/tests/delay.rs b/tokio-timer/tests/delay.rs index 43066260..d18919ca 100644 --- a/tokio-timer/tests/delay.rs +++ b/tokio-timer/tests/delay.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] mod support; use crate::support::*; diff --git a/tokio-timer/tests/hammer.rs b/tokio-timer/tests/hammer.rs index 16e86e1a..8d9bccf2 100644 --- a/tokio-timer/tests/hammer.rs +++ b/tokio-timer/tests/hammer.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] use futures::stream::FuturesUnordered; use futures::{Future, Stream}; diff --git a/tokio-timer/tests/interval.rs b/tokio-timer/tests/interval.rs index 9b612585..cb7bb742 100644 --- a/tokio-timer/tests/interval.rs +++ b/tokio-timer/tests/interval.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] mod support; use crate::support::*; diff --git a/tokio-timer/tests/queue.rs b/tokio-timer/tests/queue.rs index b11ec606..969fb7bc 100644 --- a/tokio-timer/tests/queue.rs +++ b/tokio-timer/tests/queue.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] mod support; use crate::support::*; diff --git a/tokio-timer/tests/throttle.rs b/tokio-timer/tests/throttle.rs index 96c384c7..022b01e4 100644 --- a/tokio-timer/tests/throttle.rs +++ b/tokio-timer/tests/throttle.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] mod support; use crate::support::*; diff --git a/tokio-timer/tests/timeout.rs b/tokio-timer/tests/timeout.rs index 9e9a808a..5dada019 100644 --- a/tokio-timer/tests/timeout.rs +++ b/tokio-timer/tests/timeout.rs @@ -1,4 +1,5 @@ #![deny(warnings, rust_2018_idioms)] +#![cfg(feature = "broken")] mod support; use crate::support::*; |