Skip to content

Commit

Permalink
Add a broken test for stacktraces
Browse files Browse the repository at this point in the history
Ideally atsign-interpret would throw stacktraces identical to those
from compiled code. Unfortunately at present the stacktrace points
to lines in the interpreter itself.
  • Loading branch information
timholy committed Feb 12, 2019
1 parent 3ac30b9 commit 5d986fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/interpret.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ ret = @interpret f_exc_outer3(f_exc_inner2)
@test ret == ErrorException("inner")
@test !caught[]


stc = try f_exc_outer1() catch
stacktrace(catch_backtrace())
end
sti = try @interpret(f_exc_outer1()) catch
stacktrace(catch_backtrace())
end
@test_broken stc == sti

# issue #3
@test @interpret(joinpath("/home/julia/base", "sysimg.jl")) == "/home/julia/base/sysimg.jl"
@test @interpret(10.0^4) == 10.0^4
Expand Down

0 comments on commit 5d986fb

Please sign in to comment.