Skip to content

Commit f8ff488

Browse files
authored
Check if ENFILE was the error code; it seems that on OSX, this is sometimes the return code instead of EMFILE (#22788)
1 parent e521c8a commit f8ff488

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)