Skip to content

Commit

Permalink
generalize backtrace test to succeed without inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Oct 20, 2015
1 parent 3e7206e commit 249c91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/backtrace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ let
ind2 = find(:test_throw_commoning .== map(b->code_loc(b)[1], b2))
@test !isempty(ind1)
@test !isempty(ind2)
@test code_loc(b1[ind1[1]])[3]::Int == code_loc(b2[ind2[1]])[3]::Int && # source line, for example: essentials.jl:58
code_loc(b1[ind1[1]])[5]::Int != code_loc(b2[ind2[1]])[5]::Int # inlined line, for example: backtrace.jl:82
@test (code_loc(b1[ind1[1]])[3]::Int == code_loc(b2[ind2[1]])[3]::Int) != # source line, for example: essentials.jl:58
(code_loc(b1[ind1[1]])[5]::Int == code_loc(b2[ind2[1]])[5]::Int) # inlined line, for example: backtrace.jl:82
end

0 comments on commit 249c91a

Please sign in to comment.