Skip to content

Commit 8087c60

Browse files
committed
fix status check
1 parent 4ff697d commit 8087c60

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test_test.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,18 @@ reqs = [sreq,rreq]
3535
for ind in inds
3636
(onedone,stat) = MPI.Test!(reqs[ind])
3737
@test onedone
38-
@test stat == MPI.STATUS_EMPTY
38+
@test stat.source == MPI.MPI_ANY_SOURCE
39+
@test stat.tag == MPI.MPI_ANY_TAG
40+
@test stat.error == MPI.MPI_SUCCESS
3941
end
4042

4143
(done, ind, stats) = MPI.Testany!(reqs)
4244
if done && ind != 0
4345
(onedone,stat) = MPI.Test!(reqs[ind])
4446
@test onedone
45-
@test stat == MPI.STATUS_EMPTY
47+
@test stat.source == MPI.MPI_ANY_SOURCE
48+
@test stat.tag == MPI.MPI_ANY_TAG
49+
@test stat.error == MPI.MPI_SUCCESS
4650
end
4751

4852
MPI.Waitall!(reqs)

0 commit comments

Comments
 (0)