Skip to content

Commit c04b0f1

Browse files
test profiling with multiple threads
1 parent ac54799 commit c04b0f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/Profile/test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ let cmd = Base.julia_cmd()
168168
println("done")
169169
print(Profile.len_data())
170170
"""
171-
p = open(`$cmd -e $script`)
171+
# use multiple threads here to ensure that profiling works with threading
172+
p = open(`$cmd -t2 -e $script`)
172173
t = Timer(120) do t
173174
# should be under 10 seconds, so give it 2 minutes then report failure
174175
println("KILLING debuginfo registration test BY PROFILE TEST WATCHDOG\n")

0 commit comments

Comments
 (0)