summaryrefslogtreecommitdiff
path: root/auto_tests/save_load_test.c
diff options
context:
space:
mode:
authorLeonid Bobrov <mazocomp@disroot.org>2018-08-16 10:09:12 +0300
committeriphydf <iphydf@users.noreply.github.com>2018-08-16 09:57:37 +0000
commit006b4f4e5c3579428ff02ab954bf78a913df9e5a (patch)
treec68c3aec191b115fe73c8df7399468ae0edec222 /auto_tests/save_load_test.c
parent3036cc1f23cef20885db3652972c102e7405d178 (diff)
Prune long long warnings.
Diffstat (limited to 'auto_tests/save_load_test.c')
-rw-r--r--auto_tests/save_load_test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/auto_tests/save_load_test.c b/auto_tests/save_load_test.c
index 7d5672c7..57b2bda5 100644
--- a/auto_tests/save_load_test.c
+++ b/auto_tests/save_load_test.c
@@ -71,7 +71,7 @@ static void test_few_clients(void)
71 if (tox_self_get_connection_status(tox1) && tox_self_get_connection_status(tox2) 71 if (tox_self_get_connection_status(tox1) && tox_self_get_connection_status(tox2)
72 && tox_self_get_connection_status(tox3)) { 72 && tox_self_get_connection_status(tox3)) {
73 if (off) { 73 if (off) {
74 printf("Toxes are online, took %ld seconds\n", time(nullptr) - cur_time); 74 printf("Toxes are online, took %lu seconds\n", (unsigned long)(time(nullptr) - cur_time));
75 con_time = time(nullptr); 75 con_time = time(nullptr);
76 off = 0; 76 off = 0;
77 } 77 }
@@ -86,7 +86,7 @@ static void test_few_clients(void)
86 } 86 }
87 87
88 ck_assert_msg(connected_t1, "Tox1 isn't connected. %u", connected_t1); 88 ck_assert_msg(connected_t1, "Tox1 isn't connected. %u", connected_t1);
89 printf("tox clients connected took %ld seconds\n", time(nullptr) - con_time); 89 printf("tox clients connected took %lu seconds\n", (unsigned long)(time(nullptr) - con_time));
90 90
91 const size_t save_size1 = tox_get_savedata_size(tox2); 91 const size_t save_size1 = tox_get_savedata_size(tox2);
92 ck_assert_msg(save_size1 != 0, "save is invalid size %u", (unsigned)save_size1); 92 ck_assert_msg(save_size1 != 0, "save is invalid size %u", (unsigned)save_size1);
@@ -111,7 +111,7 @@ static void test_few_clients(void)
111 if (tox_self_get_connection_status(tox1) && tox_self_get_connection_status(tox2) 111 if (tox_self_get_connection_status(tox1) && tox_self_get_connection_status(tox2)
112 && tox_self_get_connection_status(tox3)) { 112 && tox_self_get_connection_status(tox3)) {
113 if (off) { 113 if (off) {
114 printf("Toxes are online again after reloading, took %ld seconds\n", time(nullptr) - cur_time); 114 printf("Toxes are online again after reloading, took %lu seconds\n", (unsigned long)(time(nullptr) - cur_time));
115 con_time = time(nullptr); 115 con_time = time(nullptr);
116 off = 0; 116 off = 0;
117 } 117 }
@@ -125,9 +125,9 @@ static void test_few_clients(void)
125 c_sleep(ITERATION_INTERVAL); 125 c_sleep(ITERATION_INTERVAL);
126 } 126 }
127 127
128 printf("tox clients connected took %ld seconds\n", time(nullptr) - con_time); 128 printf("tox clients connected took %lu seconds\n", (unsigned long)(time(nullptr) - con_time));
129 129
130 printf("test_few_clients succeeded, took %ld seconds\n", time(nullptr) - cur_time); 130 printf("test_few_clients succeeded, took %lu seconds\n", (unsigned long)(time(nullptr) - cur_time));
131 131
132 tox_options_free(options); 132 tox_options_free(options);
133 tox_kill(tox1); 133 tox_kill(tox1);