Skip to content

tests: do not check all fields of UndefVarError for egal #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 3, 2023
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
17 changes: 10 additions & 7 deletions test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -967,17 +967,19 @@ end
# issue #16091
mutable struct T16091 end
wid = workers()[1]
@test try
try
remotecall_fetch(()->T16091, wid)
false
@test "unreachable" === true
catch ex
((ex::RemoteException).captured::CapturedException).ex === UndefVarError(:T16091)
ex = ((ex::RemoteException).captured::CapturedException).ex
@test (ex::UndefVarError).var === :T16091
end
@test try
try
remotecall_fetch(identity, wid, T16091)
false
@test "unreachable" === true
catch ex
((ex::RemoteException).captured::CapturedException).ex === UndefVarError(:T16091)
ex = ((ex::RemoteException).captured::CapturedException).ex
@test (ex::UndefVarError).var === :T16091
end

f16091a() = 1
Expand Down Expand Up @@ -1555,7 +1557,8 @@ try
catch ex
@test isa(ex.captured.ex.exceptions[1].ex, ErrorException)
@test occursin("BoundsError", ex.captured.ex.exceptions[1].ex.msg)
@test ex.captured.ex.exceptions[2].ex == UndefVarError(:DontExistOn1)
ex = ex.captured.ex.exceptions[2].ex
@test (ex::UndefVarError).var === :DontExistOn1
end

let
Expand Down