Skip to content

Commit 26e9209

Browse files
authored
Update Profile output test for v1.12 (#381)
For JuliaLang/julia#55335
1 parent db8eee3 commit 26e9209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ExecutionTests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ b = @bprofile likegcd(x, y) setup = (x = rand(2:200); y = rand(2:200))
308308
io = IOBuffer()
309309
Profile.print(IOContext(io, :displaysize => (24, 200)))
310310
str = String(take!(io))
311-
@test occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+; #?_run", str)
312-
@test !occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+; #?tune!", str)
311+
@test occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+[; ] #?_run", str)
312+
@test !occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+[; ] #?tune!", str)
313313
b = @bprofile 1 + 1
314314
Profile.print(IOContext(io, :displaysize => (24, 200)))
315315
str = String(take!(io))

0 commit comments

Comments
 (0)