Commit 81e5d90b authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed test-bsd unit test: port number is now zeroed by...

Fixed test-bsd unit test: port number is now zeroed by nice_address_set_from_string so the unit test had to be modified.

darcs-hash:20070919145659-77cd4-b8787d679b44e9d2dba9789f4f5ab55c91c4d8b5.gz
parent 3842982e
...@@ -67,9 +67,10 @@ main (void) ...@@ -67,9 +67,10 @@ main (void)
// is bound to a particular port // is bound to a particular port
g_assert (nice_address_get_port (&client.addr) != 0); g_assert (nice_address_get_port (&client.addr) != 0);
tmp = server.addr;
if (!nice_address_set_from_string (&tmp, "127.0.0.1")) if (!nice_address_set_from_string (&tmp, "127.0.0.1"))
g_assert_not_reached(); g_assert_not_reached();
g_assert (nice_address_get_port (&server.addr) != 0);
nice_address_set_port (&tmp, nice_address_get_port (&server.addr));
nice_udp_socket_send (&client, &tmp, 5, "hello"); nice_udp_socket_send (&client, &tmp, 5, "hello");
g_assert (5 == nice_udp_socket_recv (&server, &tmp, 5, buf)); g_assert (5 == nice_udp_socket_recv (&server, &tmp, 5, buf));
......
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