Skip to content

Commit e620c43

Browse files
test Module short names
1 parent c61b2f0 commit e620c43

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

stdlib/Profile/test/runtests.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,20 @@ end
204204
@test getline(values(fdictc)) == getline(values(fdict0)) + 2
205205
end
206206

207+
@testset "Module short names" begin
208+
Profile.clear()
209+
@profile peakflops()
210+
io = IOBuffer()
211+
Profile.print(io, 1000, C=true)
212+
str = String(take!(io))
213+
@test occursin("@Compiler/src", str)
214+
@test occursin("@Base/src", str)
215+
@test occursin("@InteractiveUtils/src", str)
216+
@test occursin("@LinearAlgebra/src", str)
217+
@test occursin("@juliasrc", str)
218+
@test occursin("@julialib", str)
219+
end
220+
207221
# Profile deadlocking in compilation (debuginfo registration)
208222
let cmd = Base.julia_cmd()
209223
script = """

0 commit comments

Comments
 (0)