From 5513d8de8a4b2fec80874a04bdaa6d8aae8a6c0e Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Sat, 13 Jul 2024 17:13:48 +0200 Subject: [PATCH] fix compiler options test windows Julia 1.11 --- test/packages/Basic.jl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/packages/Basic.jl b/test/packages/Basic.jl index 863548f332..45c6c654fa 100644 --- a/test/packages/Basic.jl +++ b/test/packages/Basic.jl @@ -694,15 +694,15 @@ import Malt compilation_dir_testA = joinpath(compilation_dir, "PlutoPkgTestA") precomp_entries() = readdir(mkpath(compilation_dir_testA)) - # clear cache - let - # sleep workaround for julia issue 34700. - sleep(3) - isdir(compilation_dir_testA) && rm(compilation_dir_testA; force=true, recursive=true) - end - @test precomp_entries() == [] - + @testset "Match compiler options: $(match)" for match in [true, false] + # clear cache + let + # sleep workaround for julia issue 34700. + sleep(3) + isdir(compilation_dir_testA) && rm(compilation_dir_testA; force=true, recursive=true) + end + @test precomp_entries() == [] before_sync = precomp_entries() @@ -763,7 +763,7 @@ import Malt full_logs = join([log["msg"][1] for log in notebook.cells[1].logs], "\n") # There should be a log message about loading the cache. - VERSION >= v"1.8.0-aaa" && @test occursin(r"Loading.*cache"i, full_logs) + VERSION >= v"1.9.0-aaa" && @test occursin(r"Loading.*cache"i, full_logs) # There should NOT be a log message about rejecting the cache. @test !occursin(r"reject.*cache"i, full_logs)