Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,10 @@ precompile_test_harness(false) do dir
error("the \"break me\" test failed")
catch exc
isa(exc, ErrorException) || rethrow()
occursin("ERROR: LoadError: break me", exc.msg) && rethrow()
# The LoadError shouldn't be surfaced but is printed to stderr, hence the `@test_warn` capture tests
occursin("LoadError: break me", exc.msg) && rethrow()
# The actual error that is thrown
occursin("Failed to precompile FooBar2", exc.msg) || rethrow()
end

# Test that trying to eval into closed modules during precompilation is an error
Expand Down