From f8ff488f19f97f6379e8fc1ce64902c949ffc6f1 Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Thu, 13 Jul 2017 21:00:13 -0600 Subject: [PATCH] Check if ENFILE was the error code; it seems that on OSX, this is sometimes the return code instead of EMFILE (#22788) --- 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)