summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-05-21 14:52:21 +0200
committerMichael Adam <obnox@samba.org>2014-05-26 10:03:54 +0200
commitd977b0ee9570757cb15014c18787d366956d7901 (patch)
treec4abef100a588e500aea5ed6cfecc625c84cbb75
parentf60415a3ae411454551adc494e65fff7412e270e (diff)
downloadsocket_wrapper-d977b0ee9570757cb15014c18787d366956d7901.tar.gz
socket_wrapper-d977b0ee9570757cb15014c18787d366956d7901.tar.xz
socket_wrapper-d977b0ee9570757cb15014c18787d366956d7901.zip
tests: Fix assert_sockaddr_equal() file and line output.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--tests/test_echo_tcp_get_peer_sock_name.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_echo_tcp_get_peer_sock_name.c b/tests/test_echo_tcp_get_peer_sock_name.c
index 8bbc81d..258ad7c 100644
--- a/tests/test_echo_tcp_get_peer_sock_name.c
+++ b/tests/test_echo_tcp_get_peer_sock_name.c
@@ -37,7 +37,8 @@ static void _assert_sockaddr_equal(struct sockaddr_storage *ss, const char *a,
&sinp->sin_addr,
ip,
sizeof(ip));
- assert_non_null(p);
+ _assert_true(cast_ptr_to_largest_integral_type(p),
+ "inet_ntop: Failed to convert IP address", file, line);
_assert_string_equal(ip, a, file, line);
}