Skip to content

Commit

Permalink
test_aio_drop doesn't build on OpenBSD
Browse files Browse the repository at this point in the history
I don't actually know why it doesn't build on OpenBSD, I've added
a conditional compilation attribute for it just to get the test
suite to build.
  • Loading branch information
thendiscard committed Dec 20, 2018
1 parent 680ff30 commit 6bdd9f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/sys/test_aio_drop.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
extern crate nix;
extern crate tempfile;

#[cfg(not(target_os = "openbsd"))]
use nix::sys::aio::*;
use nix::sys::signal::*;
use std::os::unix::io::AsRawFd;
Expand All @@ -11,7 +12,8 @@ use tempfile::tempfile;
// the AIO subsystem and causes subsequent tests to fail
#[test]
#[should_panic(expected = "Dropped an in-progress AioCb")]
#[cfg(not(target_env = "musl"))]
#[cfg(not(any(target_env = "musl",
target_os = "openbsd")))]
fn test_drop() {
const WBUF: &[u8] = b"CDEF";

Expand Down

0 comments on commit 6bdd9f2

Please sign in to comment.