Skip to content

Commit 6bdd9f2

Browse files
committed
test_aio_drop doesn't build on OpenBSD
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.
1 parent 680ff30 commit 6bdd9f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/sys/test_aio_drop.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
extern crate nix;
22
extern crate tempfile;
33

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

0 commit comments

Comments
 (0)