Skip to content

Commit 209a450

Browse files
authored
fix precompiling check on 1.11 (#70)
this is a very fragile way to check if something ends up getting precompiled but at least it works until the printing is changed again...
1 parent 30889fe commit 209a450

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/runtests.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ up_path = joinpath(@__DIR__, "UsesPreferences")
8585
@test !haskey(prefs["UsesPreferences"], "__clear__")
8686

8787
# Now show that it forces recompilation
88-
did_precompile(output) = occursin("Precompiling UsesPreferences [$(string(up_uuid))]", output)
88+
function did_precompile(output)
89+
occursin("Precompiling UsesPreferences [$(string(up_uuid))]", output) ||
90+
occursin("Precompiling\e[22m\e[39m UsesPreferences", output)
91+
end
8992
cuda_test = """
9093
using UsesPreferences, Test
9194
@test UsesPreferences.backend == "CUDA"

0 commit comments

Comments
 (0)