Skip to content

Commit 9491885

Browse files
giordanostaticfloat
authored andcommitted
Fix tests of Zlib logs with Julia nightly
1 parent 76f0bf1 commit 9491885

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/dependencies.jl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,20 @@ end
133133
else
134134
["Zlib.log.gz"]
135135
end
136-
@test sort!(readdir(joinpath(destdir(dir, platform), "logs"))) == zlib_log_files
136+
zlib_log_dir = if VERSION v"1.9.0-"
137+
joinpath(destdir(dir, platform), "logs", "Zlib")
138+
else
139+
joinpath(destdir(dir, platform), "logs")
140+
end
141+
@test sort!(readdir(zlib_log_dir)) == zlib_log_files
137142

138143
# Make sure the directories are emptied by `cleanup_dependencies`
139144
@test_nowarn cleanup_dependencies(prefix, ap, platform)
140145
@test readdir(joinpath(destdir(dir, platform), "include")) == []
141-
@test readdir(joinpath(destdir(dir, platform), "logs")) == []
146+
# Since Julia v1.9 we use builds of Zlib which have logs in
147+
# subdirectories of `${prefix}/logs`, so those subdirectories are
148+
# left there empty, cannot be removed by `cleanup_dependencies`.
149+
@test readdir(joinpath(destdir(dir, platform), "logs")) == [] broken=VERSIONv"1.9.0-"
142150
end
143151

144152
# Setup a dependency of a JLL package which is also a standard library

0 commit comments

Comments
 (0)