Skip to content

Commit 95a1529

Browse files
quinnjjeffwong
authored andcommitted
Check if ENFILE was the error code; it seems that on OSX, this is sometimes the return code instead of EMFILE (JuliaLang#22788)
1 parent db5d915 commit 95a1529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/spawn.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ if Sys.isunix()
439439
end
440440
catch ex
441441
isa(ex, Base.UVError) || rethrow(ex)
442-
@test ex.code == Base.UV_EMFILE
442+
@test ex.code in (Base.UV_EMFILE, Base.UV_ENFILE)
443443
finally
444444
for p in ps
445445
close(p)

0 commit comments

Comments
 (0)