Skip to content

Commit fe73c17

Browse files
committed
drop windows test
1 parent 3abca88 commit fe73c17

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
@@ -344,13 +344,12 @@ end
344344

345345
@testset "jl_*affinity" begin
346346
cpumasksize = @ccall uv_cpumask_size()::Cint
347-
if cpumasksize > 0 # otherwise affinities are not supported on the platform (UV_ENOTSUP)
347+
if !Sys.iswindows() && cpumasksize > 0 # otherwise affinities are not supported on the platform (UV_ENOTSUP)
348348
mask = zeros(Cchar, cpumasksize);
349349
jl_getaffinity = (tid, mask, cpumasksize) -> ccall(:jl_getaffinity, Int32, (Int16, Ptr{Cchar}, Int32), tid, mask, cpumasksize)
350350
jl_setaffinity = (tid, mask, cpumasksize) -> ccall(:jl_setaffinity, Int32, (Int16, Ptr{Cchar}, Int32), tid, mask, cpumasksize)
351351
@test jl_getaffinity(1, mask, cpumasksize) == 0
352-
fill!(mask, 0)
353-
mask[begin] = 1
352+
fill!(mask, 1)
354353
@test jl_setaffinity(1, mask, cpumasksize) == 0
355354
end
356355
end

0 commit comments

Comments
 (0)