Skip to content

Commit

Permalink
drop windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer committed Apr 17, 2024
1 parent 46bf57b commit ff829a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/threads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,12 @@ end

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

0 comments on commit ff829a9

Please sign in to comment.