diff options
author | endoffile78 <endoffile78@yahoo.com> | 2017-01-05 15:16:56 -0600 |
---|---|---|
committer | endoffile78 <endoffile78@yahoo.com> | 2017-01-05 15:16:56 -0600 |
commit | 59e2a844f04a8725e8079f854158aa86ef5988b2 (patch) | |
tree | 40130a9f28a5d08b6ff524156f5476b7359f75df /auto_tests/conference_test.c | |
parent | 0a61d1108547513211560e66809479cab5082ede (diff) |
Revert "Portability fixes"
This reverts commit f3469070fe899e8e4fd88665386a55bad9f77cd8.
Diffstat (limited to 'auto_tests/conference_test.c')
-rw-r--r-- | auto_tests/conference_test.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/auto_tests/conference_test.c b/auto_tests/conference_test.c index 36707e0f..aa2f8e13 100644 --- a/auto_tests/conference_test.c +++ b/auto_tests/conference_test.c | |||
@@ -1,8 +1,6 @@ | |||
1 | /* Auto Tests: Conferences. | 1 | /* Auto Tests: Conferences. |
2 | */ | 2 | */ |
3 | 3 | ||
4 | #define _XOPEN_SOURCE 600 | ||
5 | |||
6 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
7 | #include "config.h" | 5 | #include "config.h" |
8 | #endif | 6 | #endif |
@@ -177,7 +175,7 @@ group_test_restart: | |||
177 | * Either way in this case it's fine */ | 175 | * Either way in this case it's fine */ |
178 | if (peer_count != NUM_GROUP_TOX) { | 176 | if (peer_count != NUM_GROUP_TOX) { |
179 | ++test_run; | 177 | ++test_run; |
180 | printf("\tError starting up the first group (peer_count %" PRIu32 " != %d, test_run = %d)\n", peer_count, NUM_GROUP_TOX, | 178 | printf("\tError starting up the first group (peer_count %"PRIu32" != %d, test_run = %d)\n", peer_count, NUM_GROUP_TOX, |
181 | test_run); | 179 | test_run); |
182 | 180 | ||
183 | for (j = 0; j < NUM_GROUP_TOX; ++j) { | 181 | for (j = 0; j < NUM_GROUP_TOX; ++j) { |
@@ -196,7 +194,7 @@ group_test_restart: | |||
196 | * important again. | 194 | * important again. |
197 | */ | 195 | */ |
198 | ck_assert_msg(peer_count == NUM_GROUP_TOX, "\n\tBad number of group peers (pre check)." | 196 | ck_assert_msg(peer_count == NUM_GROUP_TOX, "\n\tBad number of group peers (pre check)." |
199 | "\n\t\t\tExpected: %u but tox_instance(%u) only has: %" PRIu32 "\n\n", | 197 | "\n\t\t\tExpected: %u but tox_instance(%u) only has: %"PRIu32"\n\n", |
200 | NUM_GROUP_TOX, i, peer_count); | 198 | NUM_GROUP_TOX, i, peer_count); |
201 | 199 | ||
202 | uint8_t title[2048]; | 200 | uint8_t title[2048]; |
@@ -243,7 +241,7 @@ group_test_restart: | |||
243 | for (i = 0; i < (k - 1); ++i) { | 241 | for (i = 0; i < (k - 1); ++i) { |
244 | uint32_t peer_count = tox_conference_peer_count(toxes[i], 0, NULL); | 242 | uint32_t peer_count = tox_conference_peer_count(toxes[i], 0, NULL); |
245 | ck_assert_msg(peer_count == (k - 1), "\n\tBad number of group peers (post check)." | 243 | ck_assert_msg(peer_count == (k - 1), "\n\tBad number of group peers (post check)." |
246 | "\n\t\t\tExpected: %u but tox_instance(%u) only has: %" PRIu32 "\n\n", | 244 | "\n\t\t\tExpected: %u but tox_instance(%u) only has: %"PRIu32"\n\n", |
247 | (k - 1), i, peer_count); | 245 | (k - 1), i, peer_count); |
248 | } | 246 | } |
249 | } | 247 | } |