Skip to content

Commit

Permalink
Reenable test_fsync on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Sep 2, 2017
1 parent 7dc871e commit 030e93d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/sys/test_aio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@ fn test_aio_cancel_all() {
let _ = aiocb.aio_return();
}

// I can't explain why, but on Travis in OSX aiocb.fsync will repeatedly
// return EAGAIN. It doesn't happen on the bench.
#[test]
#[cfg_attr(any(target_os = "macos",
all(target_env = "musl", target_arch = "x86_64")), ignore)]
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)]
fn test_fsync() {
const INITIAL: &'static [u8] = b"abcdef123456";
let mut f = tempfile().unwrap();
Expand Down Expand Up @@ -504,6 +501,8 @@ fn test_lio_listio_read_immutable() {
}

// Test dropping an AioCb that hasn't yet finished.
// Skip on OSX where this test seems to hose the AIO subsystem and
// causes subsequent tests to fail
#[test]
#[should_panic(expected = "Dropped an in-progress AioCb")]
#[cfg(not(any(target_os = "macos", target_env = "musl")))]
Expand Down

0 comments on commit 030e93d

Please sign in to comment.