Skip to content

Commit 11ab132

Browse files
committed
Remove test reliance on rand!(::AT).
1 parent f0ea5b2 commit 11ab132

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/copyto.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ using KernelAbstractions, Test
22
import KernelAbstractions: allocate, copyto!
33
using Random
44

5-
function copyto_testsuite(Backend)
5+
function copyto_testsuite(Backend, ArrayT)
66
M = 1024
77
backend = Backend()
88
ET = KernelAbstractions.supports_float64(backend) ? Float64 : Float32
99

10-
A = rand!(allocate(backend, ET, M))
11-
B = rand!(allocate(backend, ET, M))
10+
A = ArrayT(rand(ET, M))
11+
B = ArrayT(rand(ET, M))
1212

1313
a = Array{ET}(undef, M)
1414
copyto!(backend, a, B)

test/testsuite.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function testsuite(backend, backend_str, backend_mod, AT, DAT; skip_tests = Set{
6464
end
6565

6666
@conditional_testset "copyto!" skip_tests begin
67-
copyto_testsuite(backend)
67+
copyto_testsuite(backend, AT)
6868
end
6969

7070
@conditional_testset "Printing" skip_tests begin

0 commit comments

Comments
 (0)