Skip to content

Commit 6cd22f0

Browse files
authored
Update ExecutionTests.jl to work with Windows path
Fixes #273
1 parent 8216b93 commit 6cd22f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ExecutionTests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ b = @bprofile likegcd(x, y) setup=(x = rand(2:200); y = rand(2:200))
189189
io = IOBuffer()
190190
Profile.print(IOContext(io, :displaysize=>(24,200)))
191191
str = String(take!(io))
192-
@test occursin(r"BenchmarkTools(\.jl)?/src/execution\.jl:\d+; _run", str)
193-
@test !occursin(r"BenchmarkTools(\.jl)?/src/execution\.jl:\d+; warmup", str)
194-
@test !occursin(r"BenchmarkTools(\.jl)?/src/execution\.jl:\d+; tune!", str)
192+
@test occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+; _run", str)
193+
@test !occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+; warmup", str)
194+
@test !occursin(r"BenchmarkTools(\.jl)?(/|\\)src(/|\\)execution\.jl:\d+; tune!", str)
195195
b = @bprofile 1+1
196196
Profile.print(IOContext(io, :displaysize=>(24,200)))
197197
str = String(take!(io))

0 commit comments

Comments
 (0)