Skip to content

Commit

Permalink
Check if ENFILE was the error code; it seems that on OSX, this is som…
Browse files Browse the repository at this point in the history
…etimes the return code instead of EMFILE (#22788)
  • Loading branch information
quinnj authored Jul 14, 2017
1 parent e521c8a commit f8ff488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/spawn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f8ff488

Please sign in to comment.