Skip to content

Commit

Permalink
Fix UndefVarError when the backtrace test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Jan 14, 2016
1 parent a0b5414 commit 2e7557c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/backtrace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ try
error("unexpected")
catch err
lkup = get_bt_frame(:test_inline_1, catch_backtrace())
if is(lkup, nothing)
throw(Test.Failure("Missing backtrace in inlining test"))
end
@test lkup !== nothing || "Missing backtrace in inlining test"

fname, file, line, inlinedfile, inlinedline, fromC = lkup
@test endswith(string(inlinedfile), "backtrace.jl")
Expand All @@ -57,9 +55,7 @@ try
error("unexpected")
catch err
lkup = get_bt_frame(:test_inline_2, catch_backtrace())
if is(lkup, nothing)
throw(Test.Failure("Missing backtrace in inlining test"))
end
@test lkup !== nothing || "Missing backtrace in inlining test"

fname, file, line, inlinedfile, inlinedline, fromC = lkup
@test string(file) == absfilepath
Expand Down

0 comments on commit 2e7557c

Please sign in to comment.