From 26e92091ba051ccafaac5d883b0039a500c4a5b8 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Tue, 19 Nov 2024 14:07:18 -0500 Subject: [PATCH] Update Profile output test for v1.12 (#381) For https://github.com/JuliaLang/julia/pull/55335 --- test/ExecutionTests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ExecutionTests.jl b/test/ExecutionTests.jl index 57666815..d04f6c05 100644 --- a/test/ExecutionTests.jl +++ b/test/ExecutionTests.jl @@ -308,8 +308,8 @@ b = @bprofile likegcd(x, y) setup = (x = rand(2:200); y = rand(2:200)) io = IOBuffer() Profile.print(IOContext(io, :displaysize => (24, 200))) str = String(take!(io)) -@test occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+; #?_run", str) -@test !occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+; #?tune!", str) +@test occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+[; ] #?_run", str) +@test !occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+[; ] #?tune!", str) b = @bprofile 1 + 1 Profile.print(IOContext(io, :displaysize => (24, 200))) str = String(take!(io))