Skip to content

Commit d211398

Browse files
authored
Fix FileWatching tests on FreeBSD (#53307)
#49937 optimistically enabled some file watcher tests on FreeBSD due to changes made in libuv that suggested it should work, but unfortunately it does not.
1 parent 38065a4 commit d211398

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/FileWatching/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ test2_12992()
161161
#######################################################################
162162
# This section tests file watchers. #
163163
#######################################################################
164-
F_GETPATH = Sys.islinux() || Sys.iswindows() || Sys.isapple() || Sys.isfreebsd() # platforms where F_GETPATH is available
164+
F_GETPATH = Sys.islinux() || Sys.iswindows() || Sys.isapple() # platforms where F_GETPATH is available
165165
F_PATH = F_GETPATH ? "afile.txt" : ""
166166
dir = mktempdir()
167167
file = joinpath(dir, "afile.txt")
@@ -276,7 +276,7 @@ function test_dirmonitor_wait(tval)
276276
end
277277
end
278278
fname, events = wait(fm)::Pair
279-
@test fname == F_PATH
279+
@test fname == basename(file)
280280
@test events.changed && !events.timedout && !events.renamed
281281
close(fm)
282282
end

0 commit comments

Comments
 (0)