You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ParallelTestRunner.jl
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -791,6 +791,7 @@ function runtests(mod::Module, args::ParsedArgs;
791
791
jobs::Int=clamp(_jobs, 1, length(tests))
792
792
println(stdout, "Running $jobs tests in parallel. If this is too many, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.")
793
793
nworkers =min(jobs, length(tests))
794
+
workers =fill(nothing, nworkers)
794
795
795
796
t0 =time()
796
797
results = []
@@ -980,7 +981,7 @@ function runtests(mod::Module, args::ParsedArgs;
980
981
#
981
982
982
983
worker_tasks = Task[]
983
-
for_in1:nworkers
984
+
forpinworkers
984
985
push!(worker_tasks, @asyncbegin
985
986
while!done[]
986
987
# get a test to run
@@ -1000,11 +1001,14 @@ function runtests(mod::Module, args::ParsedArgs;
1000
1001
else
1001
1002
test_worker(test, init_worker_code)
1002
1003
end
1004
+
# Create a new binding instead of assigning to the existing one to avoid `p` from being boxed
0 commit comments