]> git.lizzy.rs Git - rust.git/commitdiff
std: Ignore test_process_mask on OSX
authorAlex Crichton <alex@alexcrichton.com>
Tue, 4 Aug 2015 16:03:01 +0000 (09:03 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 4 Aug 2015 16:04:53 +0000 (09:04 -0700)
The investigation into #14232 discovered that it's possible that signal delivery
to a newly spawned process is racy on OSX. This test has been failing spuriously
on the OSX bots for some time now, so ignore it as we don't currently know a
solution and it looks like it may be out of our control.

src/libstd/sys/unix/process.rs

index cc78dd4e5ef1233f4ac58a8d1a14e96c8b361f7a..fb8d40d613a2d0be41140123bdc46f384165284f 100644 (file)
@@ -463,7 +463,11 @@ unsafe fn sigaddset(set: *mut c::sigset_t, signum: libc::c_int) -> libc::c_int {
         return 0;
     }
 
+    // See #14232 for more information, but it appears that signal delivery to a
+    // newly spawned process may just be raced in the OSX, so to prevent this
+    // test from being flaky we ignore it on OSX.
     #[test]
+    #[cfg_attr(target_os = "macos", ignore)]
     fn test_process_mask() {
         unsafe {
             // Test to make sure that a signal mask does not get inherited.