Skip to content

Commit 2c74cdf

Browse files
committed
Do not use skip in tests for compat with Julia 1.6
1 parent 311629f commit 2c74cdf

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

test/test_allreduce.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ for T = [Int]
5252
if iallreduce_supported
5353
req = MPI.IAllreduce!(send_arr, recv_arr, op, MPI.COMM_WORLD)
5454
MPI.Wait(req)
55+
@test recv_arr == comm_size .* send_arr
5556
end
56-
@test recv_arr == comm_size .* send_arr skip=!iallreduce_supported
5757

5858
# Nonblocking (IN_PLACE)
5959
recv_arr = copy(send_arr)
6060
synchronize()
6161
if iallreduce_supported
6262
req = MPI.IAllreduce!(recv_arr, op, MPI.COMM_WORLD)
6363
MPI.Wait(req)
64+
@test recv_arr == comm_size .* send_arr
6465
end
65-
@test recv_arr == comm_size .* send_arr skip=!iallreduce_supported
6666
end
6767
end
6868
end

test/test_reduce.jl

+9-9
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,19 @@ for T = [Int]
124124
if ireduce_supported
125125
req = MPI.IReduce!(send_arr, recv_arr, op, MPI.COMM_WORLD; root=root)
126126
MPI.Wait(req)
127-
end
128-
if isroot
129-
@test recv_arr == sz .* send_arr skip=!ireduce_supported
127+
if isroot
128+
@test recv_arr == sz .* send_arr
129+
end
130130
end
131131

132132
# Nonblocking (IN_PLACE)
133133
recv_arr = copy(send_arr)
134134
if ireduce_supported
135135
req = MPI.IReduce!(recv_arr, op, MPI.COMM_WORLD; root=root)
136136
MPI.Wait(req)
137-
end
138-
if isroot
139-
@test recv_arr == sz .* send_arr skip=!ireduce_supported
137+
if isroot
138+
@test recv_arr == sz .* send_arr
139+
end
140140
end
141141
end
142142
end
@@ -157,9 +157,9 @@ recv_arr = isroot ? zeros(eltype(send_arr), size(send_arr)) : nothing
157157
if ireduce_supported
158158
req = MPI.IReduce!(send_arr, recv_arr, +, MPI.COMM_WORLD; root=root)
159159
MPI.Wait(req)
160-
end
161-
if rank == root
162-
@test recv_arr [Double64(sz*i)/10 for i = 1:10] rtol=sz*eps(Double64) skip=!ireduce_supported
160+
if rank == root
161+
@test recv_arr [Double64(sz*i)/10 for i = 1:10] rtol=sz*eps(Double64)
162+
end
163163
end
164164

165165
MPI.Barrier( MPI.COMM_WORLD )

0 commit comments

Comments
 (0)