-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
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 == 10The 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.)
c42f
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior