Closed
Description
I have tried to slim this down as much as possible, this is the best I could do:
runtests.jl
using Test
"something"
function jl_is_runnable(path)
🏡 = Core.eval(Main, :(module asdf end))
try
Core.eval(🏡, :(include($path)))
catch ex
println.(enumerate(readlines(path; keep=true)))
showerror(stderr, ex, stacktrace(catch_backtrace()))
end
end
@test jl_is_runnable("./worse.jl")
worse.jl
@assert z == 10
The result is a segfault, on Linux, macOS and Windows, v1.0
until v1.5
.
(Deleting any line from runtests.jl
fixes the problem, hence the silly MWE.)