From dbb1acc749a8d8b8164491864ea04423855db4a4 Mon Sep 17 00:00:00 2001 From: quinnj Date: Wed, 12 Jul 2017 23:06:51 -0600 Subject: [PATCH] Check if ENFILE was the error code; it seems that on OSX, this is sometimes the return code instead of EMFILE --- test/spawn.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spawn.jl b/test/spawn.jl index f053b5c4bb95a..bbdb2a49c20b9 100644 --- a/test/spawn.jl +++ b/test/spawn.jl @@ -439,7 +439,7 @@ if Sys.isunix() end catch ex isa(ex, Base.UVError) || rethrow(ex) - @test ex.code == Base.UV_EMFILE + @test ex.code in (Base.UV_EMFILE, Base.UV_ENFILE) finally for p in ps close(p)