Skip to content

Commit 249c91a

Browse files
committed
generalize backtrace test to succeed without inlining
1 parent 3e7206e commit 249c91a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/backtrace.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ let
9999
ind2 = find(:test_throw_commoning .== map(b->code_loc(b)[1], b2))
100100
@test !isempty(ind1)
101101
@test !isempty(ind2)
102-
@test code_loc(b1[ind1[1]])[3]::Int == code_loc(b2[ind2[1]])[3]::Int && # source line, for example: essentials.jl:58
103-
code_loc(b1[ind1[1]])[5]::Int != code_loc(b2[ind2[1]])[5]::Int # inlined line, for example: backtrace.jl:82
102+
@test (code_loc(b1[ind1[1]])[3]::Int == code_loc(b2[ind2[1]])[3]::Int) != # source line, for example: essentials.jl:58
103+
(code_loc(b1[ind1[1]])[5]::Int == code_loc(b2[ind2[1]])[5]::Int) # inlined line, for example: backtrace.jl:82
104104
end

0 commit comments

Comments
 (0)