diff options
author | irungentoo <irungentoo@gmail.com> | 2015-03-12 19:04:49 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-03-12 19:04:49 -0400 |
commit | 334cb9c8db318516abd069a3cc2ec1fa233c8d9c (patch) | |
tree | 098947614b97cf43adde5a3528ca489d48d0e0f1 | |
parent | b4320e5fac5589692793013b8ab9a110e26fb704 (diff) |
Check more ports in tox_test.c
-rw-r--r-- | auto_tests/tox_test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c index b5c0fd14..0b7f976b 100644 --- a/auto_tests/tox_test.c +++ b/auto_tests/tox_test.c | |||
@@ -312,6 +312,18 @@ START_TEST(test_few_clients) | |||
312 | ck_assert_msg(error == TOX_ERR_GET_PORT_OK, "wrong error"); | 312 | ck_assert_msg(error == TOX_ERR_GET_PORT_OK, "wrong error"); |
313 | } | 313 | } |
314 | 314 | ||
315 | { | ||
316 | TOX_ERR_GET_PORT error; | ||
317 | ck_assert_msg(tox_get_udp_port(tox2, &error) == 33446, "Second Tox instance did not bind to udp port 33446.\n"); | ||
318 | ck_assert_msg(error == TOX_ERR_GET_PORT_OK, "wrong error"); | ||
319 | } | ||
320 | |||
321 | { | ||
322 | TOX_ERR_GET_PORT error; | ||
323 | ck_assert_msg(tox_get_udp_port(tox3, &error) == 33447, "Third Tox instance did not bind to udp port 33447.\n"); | ||
324 | ck_assert_msg(error == TOX_ERR_GET_PORT_OK, "wrong error"); | ||
325 | } | ||
326 | |||
315 | uint32_t to_compare = 974536; | 327 | uint32_t to_compare = 974536; |
316 | connected_t1 = 0; | 328 | connected_t1 = 0; |
317 | tox_callback_connection_status(tox1, tox_connection_status, &to_compare); | 329 | tox_callback_connection_status(tox1, tox_connection_status, &to_compare); |