Skip to content

Commit

Permalink
Fix feature flags for some tests files
Browse files Browse the repository at this point in the history
The test util module requires both the "os-poll" and "net" features.
  • Loading branch information
Thomasdezeeuw committed Nov 7, 2021
1 parent 01b6eaa commit b86c7d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/aio.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg(feature = "os-poll")]
#![cfg(any(target_os = "freebsd", target_os = "dragonfly"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use mio::{event::Source, Events, Interest, Poll, Registry, Token};
use std::{
Expand Down
2 changes: 1 addition & 1 deletion tests/unix_pipe.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg(all(unix, feature = "os-poll", feature = "os-ext"))]
#![cfg(all(unix, feature = "os-poll", feature = "os-ext", feature = "net"))]

use std::io::{Read, Write};
use std::process::{Command, Stdio};
Expand Down
2 changes: 1 addition & 1 deletion tests/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Not all functions are used by all tests.
#![allow(dead_code, unused_macros)]
#![cfg(any(feature = "os-poll", feature = "net"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use std::mem::size_of;
use std::net::SocketAddr;
Expand Down
2 changes: 1 addition & 1 deletion tests/waker.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg(feature = "os-poll")]
#![cfg(all(feature = "os-poll", feature = "net"))]

use mio::{Events, Poll, Token, Waker};
use std::sync::{Arc, Barrier};
Expand Down

0 comments on commit b86c7d9

Please sign in to comment.