Skip to content

Commit 0688ec5

Browse files
authored
Small tests for unsafe msg request (#912)
* Small tests for unsafe msg request * Remove bad eltype test
1 parent 969844f commit 0688ec5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/test_test.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ resize!(reqs, 4)
7070
@test length(reqs) == 4
7171
@test all(MPI.isnull, reqs)
7272

73+
resize!(reqs, 2)
74+
@test length(reqs) == 2
75+
@test all(MPI.isnull, reqs)
76+
7377
reqs = MPI.UnsafeMultiRequest(2)
7478
GC.@preserve send_mesg recv_mesg begin
7579
MPI.Irecv!(recv_mesg, comm, reqs[1]; source=src, tag=src+32)
@@ -87,5 +91,9 @@ resize!(reqs, 4)
8791
@test length(reqs) == 4
8892
@test all(MPI.isnull, reqs)
8993

94+
resize!(reqs, 2)
95+
@test length(reqs) == 2
96+
@test all(MPI.isnull, reqs)
97+
9098
MPI.Finalize()
9199
@test MPI.Finalized()

0 commit comments

Comments
 (0)