mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Add assertions to bootstrap tests for correct connection type.
This commit is contained in:
parent
9853f4a535
commit
e4462af919
|
@ -29,6 +29,7 @@ int main(void)
|
||||||
c_sleep(ITERATION_INTERVAL);
|
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));
|
printf("Connection (UDP): %d\n", tox_self_get_connection_status(tox_udp));
|
||||||
|
|
||||||
tox_kill(tox_udp);
|
tox_kill(tox_udp);
|
||||||
|
|
|
@ -33,6 +33,7 @@ int main(void)
|
||||||
c_sleep(ITERATION_INTERVAL);
|
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));
|
printf("Connection (TCP): %d\n", tox_self_get_connection_status(tox_tcp));
|
||||||
|
|
||||||
tox_kill(tox_tcp);
|
tox_kill(tox_tcp);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user