diff options
author | Justin R. Wilson <wilsonj@objectcomputing.com> | 2019-03-01 15:39:48 -0600 |
---|---|---|
committer | Justin R. Wilson <wilsonj@objectcomputing.com> | 2019-03-01 16:27:42 -0600 |
commit | f1010341a56e6de6e712eedd4002c573356e6ca6 (patch) | |
tree | f0e8284ac4597b1644cbe08af197d3e3f85c808f /ACE | |
parent | b2d46d73f76778b27ddd474a1320364b62257ba3 (diff) | |
download | ATCD-f1010341a56e6de6e712eedd4002c573356e6ca6.tar.gz |
Problem: SOCK_Dgram_Test fails on safety profile
Solution: Fall back to normal receive when testing with safety profile.
Diffstat (limited to 'ACE')
-rw-r--r-- | ACE/tests/SOCK_Dgram_Test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ACE/tests/SOCK_Dgram_Test.cpp b/ACE/tests/SOCK_Dgram_Test.cpp index 80935a3e167..6e4d49cec06 100644 --- a/ACE/tests/SOCK_Dgram_Test.cpp +++ b/ACE/tests/SOCK_Dgram_Test.cpp @@ -130,6 +130,13 @@ client (void *arg) ACE_INET_Addr to_addr = local_addr; +#if defined(ACE_LACKS_RECVMSG) + ssize_t rcv_cnt = cli_dgram.recv (buf, + sizeof (buf), + peer_addr, + 0, + &timeout); +#else iovec iov[1]; // Some platforms define iov_base as char* instead of void*. iov[0].iov_base = (char *)buf; @@ -140,6 +147,8 @@ client (void *arg) peer_addr, 0, &to_addr); +#endif + if (rcv_cnt == -1) { if (errno == ETIME) |