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 9a16119 commit 1f6eff1Copy full SHA for 1f6eff1
test/precompile.jl
@@ -691,7 +691,10 @@ precompile_test_harness(false) do dir
691
error("the \"break me\" test failed")
692
catch exc
693
isa(exc, ErrorException) || rethrow()
694
- 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
695
+ occursin("LoadError: break me", exc.msg) && rethrow()
696
+ # The actual error that is thrown
697
+ occursin("Failed to precompile FooBar2", exc.msg) || rethrow()
698
end
699
700
# Test that trying to eval into closed modules during precompilation is an error
0 commit comments