40
40
frame = Frame (modexs[5 ]. .. )
41
41
if VERSION < v " 1.4.0-DEV.475"
42
42
@test Aborted (frame, 1 ). at. file == Symbol (" util.jl" )
43
+ elseif isdefined (Base, :Experimental ) &&
44
+ isdefined (Base. Experimental, Symbol (" @force_compile" ))
45
+ @test Aborted (frame, 1 ). at. file == Symbol (" timing.jl" )
43
46
else
44
47
@test Aborted (frame, 1 ). at. file == Symbol (" fake.jl" )
45
48
end
@@ -97,7 +100,7 @@ module EvalLimited end
97
100
end
98
101
@test 8 < EvalLimited. s < 50 # with Compiled(), 9 statements per iteration
99
102
@test length (aborts) == 1
100
- @test aborts[1 ]. at. line ∈ (2 , 3 , 4 ) # 2 corresponds to lowering of the for loop
103
+ @test aborts[1 ]. at. line ∈ (2 , 3 , 4 , 5 ) # 2 corresponds to lowering of the for loop
101
104
102
105
# Now try again with recursive stack
103
106
empty! (aborts)
@@ -116,8 +119,8 @@ module EvalLimited end
116
119
@test length (aborts) == 1
117
120
lin = aborts[1 ]. at
118
121
if lin. file == Symbol (" fake.jl" )
119
- @test lin. line ∈ (2 , 3 , 4 )
122
+ @test lin. line ∈ (2 , 3 , 4 , 5 )
120
123
else
121
- @test lin. file == Symbol ( " range.jl " ) # if it aborts in `iterate`
124
+ @test lin. method === :iterate || lin . method === :getproperty
122
125
end
123
126
end
0 commit comments