From 030e93daa1e71a8b0eb2605cf0a0bd75fde93b69 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 2 Sep 2017 16:48:45 -0600 Subject: [PATCH] Reenable test_fsync on OSX --- test/sys/test_aio.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/sys/test_aio.rs b/test/sys/test_aio.rs index 9988b5946d..adb624c1ec 100644 --- a/test/sys/test_aio.rs +++ b/test/sys/test_aio.rs @@ -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(); @@ -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")))]