Skip to content

Commit 59f19fc

Browse files
update test
1 parent 7706db3 commit 59f19fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/precompile.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,8 +690,8 @@ precompile_test_harness(false) do dir
690690
Base.require(Main, :FooBar2)
691691
error("the \"break me\" test failed")
692692
catch exc
693-
isa(exc, ErrorException) || rethrow()
694-
# The LoadError shouldn't be surfaced but is printed to stderr, hence the `@test_warn` capture tests
693+
isa(exc, Base.PkgPrecompileError) || rethrow()
694+
# The PkgPrecompileError shouldn't be surfaced but is printed to stderr, hence the `@test_warn` capture tests
695695
occursin("LoadError: break me", exc.msg) && rethrow()
696696
# The actual error that is thrown
697697
occursin("Failed to precompile FooBar2", exc.msg) || rethrow()

0 commit comments

Comments
 (0)