Add assertions to bootstrap tests for correct connection type.

This commit is contained in:
iphydf 2018-06-23 12:37:06 +00:00
parent 9853f4a535
commit e4462af919
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ int main(void)
c_sleep(ITERATION_INTERVAL);
}
assert(tox_self_get_connection_status(tox_udp) == TOX_CONNECTION_UDP);
printf("Connection (UDP): %d\n", tox_self_get_connection_status(tox_udp));
tox_kill(tox_udp);

View File

@ -33,6 +33,7 @@ int main(void)
c_sleep(ITERATION_INTERVAL);
}
assert(tox_self_get_connection_status(tox_tcp) == TOX_CONNECTION_TCP);
printf("Connection (TCP): %d\n", tox_self_get_connection_status(tox_tcp));
tox_kill(tox_tcp);