We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48778e commit dc6884aCopy full SHA for dc6884a
test/precompile.jl
@@ -687,7 +687,10 @@ precompile_test_harness(false) do dir
687
error("the \"break me\" test failed")
688
catch exc
689
isa(exc, ErrorException) || rethrow()
690
- 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
691
+ occursin("LoadError: break me", exc.msg) && rethrow()
692
+ # The actual error that is thrown
693
+ occursin("Failed to precompile FooBar2", exc.msg) || rethrow()
694
end
695
696
# Test that trying to eval into closed modules during precompilation is an error
0 commit comments