Skip to content

Commit 207be9c

Browse files
committed
Merge pull request #135 from JuliaParallel/ksh/test
Two little tests
2 parents 0257acc + 6245065 commit 207be9c

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

src/win_mpiconstants.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,12 @@ const MPI_PROBE = (:MPI_PROBE, "msmpi.dll")
7777
const MPI_COMM_FREE = (:MPI_COMM_FREE, "msmpi.dll")
7878
const MPI_GET_COUNT = (:MPI_GET_COUNT, "msmpi.dll")
7979
const MPI_TESTSOME = (:MPI_TESTSOME, "msmpi.dll")
80+
const MPI_TESTANY = (:MPI_TESTANY, "msmpi.dll")
81+
const MPI_TESTALL = (:MPI_TESTALL, "msmpi.dll")
8082
const MPI_TYPE_CREATE_STRUCT = (:MPI_TYPE_CREATE_STRUCT, "msmpi.dll")
8183
const MPI_TYPE_COMMIT = (:MPI_TYPE_COMMIT, "msmpi.dll")
8284
const MPI_WAIT = (:MPI_WAIT, "msmpi.dll")
85+
const MPI_WAITSOME = (:MPI_WAITSOME, "msmpi.dll")
86+
const MPI_WAITANY = (:MPI_WAITANY, "msmpi.dll")
8387

8488
bitstype 32 CComm

test/test_datatype.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ end
1818

1919
# test simple type
2020

21+
type NotABits
22+
a::Any
23+
end
24+
25+
@test_throws ArgumentError MPI.type_create(NotABits)
26+
2127
immutable Boundary
2228
c::UInt16 # force some padding to be inserted
2329
a::Int

test/test_sendrecv.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ stats = MPI.Waitall!([sreq, rreq])
3030
@test MPI.Get_tag(stats[2]) == src+32
3131
@test isapprox(norm(recv_mesg-recv_mesg_expected), 0.0)
3232

33+
(done,stats) = MPI.Testall!([sreq, rreq])
34+
@test done
35+
36+
3337
rreq = nothing
3438
sreq = nothing
3539
gc()

0 commit comments

Comments
 (0)