Commit 519c920b authored by Youness Alaoui's avatar Youness Alaoui

useless unit test.. it doesn't test libstun, it only tests the behavior of...

useless unit test.. it doesn't test libstun, it only tests the behavior of sendto.. which btw, seems to be different on my pc since my last apt-get ugrade, which causes the unit test to fail
parent 9af002e9
...@@ -421,13 +421,6 @@ static void keepalive (void) ...@@ -421,13 +421,6 @@ static void keepalive (void)
(struct sockaddr *)&addr, addrlen); (struct sockaddr *)&addr, addrlen);
assert (val >= 0); assert (val >= 0);
/* Wrong address family test */
addr.ss_family = addr.ss_family == AF_INET ? AF_INET6 : AF_INET;
val = sendto (fd, buf, len, MSG_DONTWAIT | MSG_NOSIGNAL,
(struct sockaddr *)&addr, addrlen);
assert (val < 0);
/* End */ /* End */
close (servfd); close (servfd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment