summaryrefslogtreecommitdiff
path: root/auto_tests/conference_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-20 00:27:13 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-20 12:22:52 +0000
commit7c2e4dd4037c25626d862a410adb301e12a2a64a (patch)
treecd1156ed3c61befe81b139a07f92338d7b619083 /auto_tests/conference_test.c
parent32a5d25ccb2eb510d38e14da026f9de3dbed8929 (diff)
Add a simple conference test with 3 friends.
This tests that a message from tox1 is relayed via tox2 to tox3 when tox1 and tox3 are not friends.
Diffstat (limited to 'auto_tests/conference_test.c')
-rw-r--r--auto_tests/conference_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/auto_tests/conference_test.c b/auto_tests/conference_test.c
index 150236b3..0b3e2e69 100644
--- a/auto_tests/conference_test.c
+++ b/auto_tests/conference_test.c
@@ -211,10 +211,13 @@ group_test_restart:
211 tox_callback_conference_message(toxes[i], &print_group_message); 211 tox_callback_conference_message(toxes[i], &print_group_message);
212 } 212 }
213 213
214 TOX_ERR_CONFERENCE_SEND_MESSAGE err;
214 ck_assert_msg( 215 ck_assert_msg(
215 tox_conference_send_message( 216 tox_conference_send_message(
216 toxes[rand() % NUM_GROUP_TOX], 0, TOX_MESSAGE_TYPE_NORMAL, (const uint8_t *)"Install Gentoo", 217 toxes[rand() % NUM_GROUP_TOX], 0, TOX_MESSAGE_TYPE_NORMAL, (const uint8_t *)"Install Gentoo",
217 sizeof("Install Gentoo") - 1, NULL) != 0, "Failed to send group message."); 218 sizeof("Install Gentoo") - 1, &err) != 0, "Failed to send group message.");
219 ck_assert_msg(
220 err == TOX_ERR_CONFERENCE_SEND_MESSAGE_OK, "Failed to send group message.");
218 num_recv = 0; 221 num_recv = 0;
219 222
220 for (j = 0; j < 20; ++j) { 223 for (j = 0; j < 20; ++j) {