Skip to content

Commit

Permalink
fix windows error code test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 committed Aug 16, 2024
1 parent f5ee360 commit 168a71d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,11 @@ end
rm(f1)
# attempt to make a directory a subdirectory of itself
mkdir(d1)
@test Base.UV_EINVAL == rename_errorcodes(d1, joinpath(d1, "subdir"))
if Sys.iswindows()
@test rename_errorcodes(d1, joinpath(d1, "subdir")) (Base.UV_EINVAL, Base.UV_EBUSY)
else
@test Base.UV_EINVAL == rename_errorcodes(d1, joinpath(d1, "subdir"))
end
rm(d1)
# rename to child of a file
mkdir(d1)
Expand Down

0 comments on commit 168a71d

Please sign in to comment.