Skip to content

Commit 3f90bba

Browse files
test Module short names
1 parent c61b2f0 commit 3f90bba

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

stdlib/Profile/test/runtests.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,21 @@ 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+
IOContext(io, :displaysize=>(1000,1000))
212+
Profile.print(ioc, C=true)
213+
str = String(take!(io))
214+
@test occursin("@Compiler/src", str)
215+
@test occursin("@Base/src", str)
216+
@test occursin("@InteractiveUtils/src", str)
217+
@test occursin("@LinearAlgebra/src", str)
218+
@test occursin("@juliasrc", str)
219+
@test occursin("@julialib", str)
220+
end
221+
207222
# Profile deadlocking in compilation (debuginfo registration)
208223
let cmd = Base.julia_cmd()
209224
script = """

0 commit comments

Comments
 (0)