Skip to content

Commit

Permalink
Disable all tests, which don't pass for target_os = "wasi"
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Hoyer <harald@profian.com>
  • Loading branch information
haraldh authored and Thomasdezeeuw committed Mar 8, 2022
1 parent c7a92f5 commit 5552df1
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/close_on_drop.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use std::io::Read;
Expand Down
1 change: 1 addition & 0 deletions tests/events.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use std::time::Duration;
Expand Down
1 change: 1 addition & 0 deletions tests/poll.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use std::net;
Expand Down
1 change: 1 addition & 0 deletions tests/registering.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use std::io::{self, Write};
Expand Down
1 change: 1 addition & 0 deletions tests/regressions.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use std::io::{self, Read};
Expand Down
1 change: 1 addition & 0 deletions tests/tcp.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use mio::net::{TcpListener, TcpStream};
Expand Down
1 change: 1 addition & 0 deletions tests/tcp_listener.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use mio::net::TcpListener;
Expand Down
1 change: 1 addition & 0 deletions tests/tcp_stream.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use std::io::{self, IoSlice, IoSliceMut, Read, Write};
Expand Down
1 change: 1 addition & 0 deletions tests/udp_socket.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

use log::{debug, info};
Expand Down
1 change: 1 addition & 0 deletions tests/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Not all functions are used by all tests.
#![allow(dead_code, unused_macros)]
#![cfg(not(target_os = "wasi"))]
#![cfg(all(feature = "os-poll", feature = "net"))]

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

use mio::{Events, Poll, Token, Waker};
Expand Down

0 comments on commit 5552df1

Please sign in to comment.