Skip to content

Commit ff829a9

Browse files
committed
drop windows test
1 parent 46bf57b commit ff829a9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/threads.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -357,13 +357,12 @@ end
357357

358358
@testset "jl_*affinity" begin
359359
cpumasksize = @ccall uv_cpumask_size()::Cint
360-
if cpumasksize > 0 # otherwise affinities are not supported on the platform (UV_ENOTSUP)
360+
if !Sys.iswindows() && cpumasksize > 0 # otherwise affinities are not supported on the platform (UV_ENOTSUP)
361361
mask = zeros(Cchar, cpumasksize);
362362
jl_getaffinity = (tid, mask, cpumasksize) -> ccall(:jl_getaffinity, Int32, (Int16, Ptr{Cchar}, Int32), tid, mask, cpumasksize)
363363
jl_setaffinity = (tid, mask, cpumasksize) -> ccall(:jl_setaffinity, Int32, (Int16, Ptr{Cchar}, Int32), tid, mask, cpumasksize)
364364
@test jl_getaffinity(1, mask, cpumasksize) == 0
365-
fill!(mask, 0)
366-
mask[begin] = 1
365+
fill!(mask, 1)
367366
@test jl_setaffinity(1, mask, cpumasksize) == 0
368367
end
369368
end

0 commit comments

Comments
 (0)