Skip to content

Commit

Permalink
Better debugging for failing 1.11 windows compiler options test
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Jul 13, 2024
1 parent caac08f commit cb850c8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/packages/Basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -760,14 +760,12 @@ import Malt
after_run = precomp_entries()


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 any(notebook.cells[1].logs) do log
occursin(r"Loading.*cache"i, log["msg"][1])
end
VERSION >= v"1.8.0-aaa" && @test occursin(r"Loading.*cache"i, full_logs)
# There should NOT be a log message about rejecting the cache.
@test !any(notebook.cells[1].logs) do log
occursin(r"reject.*cache"i, log["msg"][1])
end
@test !occursin(r"reject.*cache"i, full_logs)

# Running the import should not have triggered additional precompilation, everything should have been precompiled during Pkg.precompile() (in sync_nbpkg).
@test after_sync == after_run
Expand Down

0 comments on commit cb850c8

Please sign in to comment.