Skip to content

Commit

Permalink
delete unclear test
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jan 20, 2025
1 parent 3e85f55 commit 7cdb0ad
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions test/threads_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -546,20 +546,6 @@ if cfunction_closure
test_thread_cfunction()
end

function test_thread_range()
a = zeros(Int, threadpoolsize())
@threads for i in 1:threadid()
a[i] = 1
end
for i in 1:threadid()
@test a[i] == 1
end
for i in (threadid() + 1):threadpoolsize()
@test a[i] == 0
end
end
test_thread_range()

# Thread safety of `jl_load_and_lookup`.
function test_load_and_lookup_18020(n)
@threads for i in 1:n
Expand Down

0 comments on commit 7cdb0ad

Please sign in to comment.