Skip to content

Commit 3ace4c7

Browse files
committed
Try to work around Windows failure.
1 parent 45cc119 commit 3ace4c7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/runtests.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,13 @@ const init_code = quote
140140
end
141141
end
142142

143+
# avoid handle exhaustion on Windows by running each test in a separate process (pocl/pocl#1941)
144+
function test_worker(test)
145+
if Sys.iswindows()
146+
addworker()
147+
else
148+
nothing
149+
end
150+
end
143151

144-
runtests(OpenCL, args; testsuite, init_code)
152+
runtests(OpenCL, args; testsuite, init_code, test_worker)

0 commit comments

Comments
 (0)