summaryrefslogtreecommitdiff
path: root/auto_tests/tox_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'auto_tests/tox_test.c')
-rw-r--r--auto_tests/tox_test.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c
index be6da1d4..82c18b37 100644
--- a/auto_tests/tox_test.c
+++ b/auto_tests/tox_test.c
@@ -234,7 +234,7 @@ static void tox_file_chunk_request(Tox *tox, uint32_t friend_number, uint32_t fi
234 } 234 }
235 235
236 if (sending_pos != position) { 236 if (sending_pos != position) {
237 ck_abort_msg("Bad position %llu", position); 237 ck_abort_msg("Bad position %llu", (unsigned long long)position);
238 } 238 }
239 239
240 if (length == 0) { 240 if (length == 0) {
@@ -614,8 +614,9 @@ START_TEST(test_few_clients)
614 } 614 }
615 615
616 ck_abort_msg("Something went wrong in file transfer %u %u %u %u %u %u %llu %llu %llu", sendf_ok, file_recv, 616 ck_abort_msg("Something went wrong in file transfer %u %u %u %u %u %u %llu %llu %llu", sendf_ok, file_recv,
617 totalf_size == file_size, size_recv == file_size, sending_pos == size_recv, file_accepted == 1, totalf_size, size_recv, 617 totalf_size == file_size, size_recv == file_size, sending_pos == size_recv, file_accepted == 1,
618 sending_pos); 618 (unsigned long long)totalf_size, (unsigned long long)size_recv,
619 (unsigned long long)sending_pos);
619 } 620 }
620 621
621 uint32_t tox1_interval = tox_iteration_interval(tox1); 622 uint32_t tox1_interval = tox_iteration_interval(tox1);
@@ -664,8 +665,8 @@ START_TEST(test_few_clients)
664 665
665 ck_abort_msg("Something went wrong in file transfer %u %u %u %u %u %u %u %llu %llu %llu %llu", sendf_ok, file_recv, 666 ck_abort_msg("Something went wrong in file transfer %u %u %u %u %u %u %u %llu %llu %llu %llu", sendf_ok, file_recv,
666 m_send_reached, totalf_size == file_size, size_recv == max_sending, sending_pos == size_recv, file_accepted == 1, 667 m_send_reached, totalf_size == file_size, size_recv == max_sending, sending_pos == size_recv, file_accepted == 1,
667 totalf_size, file_size, 668 (unsigned long long)totalf_size, (unsigned long long)file_size,
668 size_recv, sending_pos); 669 (unsigned long long)size_recv, (unsigned long long)sending_pos);
669 } 670 }
670 671
671 uint32_t tox1_interval = tox_iteration_interval(tox1); 672 uint32_t tox1_interval = tox_iteration_interval(tox1);
@@ -708,8 +709,9 @@ START_TEST(test_few_clients)
708 } 709 }
709 710
710 ck_abort_msg("Something went wrong in file transfer %u %u %u %u %u %u %llu %llu %llu", sendf_ok, file_recv, 711 ck_abort_msg("Something went wrong in file transfer %u %u %u %u %u %u %llu %llu %llu", sendf_ok, file_recv,
711 totalf_size == file_size, size_recv == file_size, sending_pos == size_recv, file_accepted == 1, totalf_size, size_recv, 712 totalf_size == file_size, size_recv == file_size, sending_pos == size_recv, file_accepted == 1,
712 sending_pos); 713 (unsigned long long)totalf_size, (unsigned long long)size_recv,
714 (unsigned long long)sending_pos);
713 } 715 }
714 716
715 uint32_t tox1_interval = tox_iteration_interval(tox1); 717 uint32_t tox1_interval = tox_iteration_interval(tox1);
@@ -728,17 +730,11 @@ START_TEST(test_few_clients)
728} 730}
729END_TEST 731END_TEST
730 732
731#ifdef TRAVIS_ENV
732static const uint8_t timeout_mux = 20;
733#else
734static const uint8_t timeout_mux = 10;
735#endif
736
737static Suite *tox_suite(void) 733static Suite *tox_suite(void)
738{ 734{
739 Suite *s = suite_create("Tox few clients"); 735 Suite *s = suite_create("Tox few clients");
740 736
741 DEFTESTCASE_SLOW(few_clients, 8 * timeout_mux); 737 DEFTESTCASE(few_clients);
742 738
743 return s; 739 return s;
744} 740}