summaryrefslogtreecommitdiff
path: root/auto_tests/tox_one_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-16 22:46:02 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-21 20:44:26 +0000
commit7245ac11ef9be2420c8356c12acc79f93ea211bb (patch)
treee971c5c6e10c2310afe4b2cd80212feac9839f2a /auto_tests/tox_one_test.c
parent7c2b95ef5e4ccdae01bd104aa7400294c9ea391b (diff)
Avoid implementations in .h files or #including .c files.
Also, avoid the need for putting `_XOPEN_SOURCE` in every test file.
Diffstat (limited to 'auto_tests/tox_one_test.c')
-rw-r--r--auto_tests/tox_one_test.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/auto_tests/tox_one_test.c b/auto_tests/tox_one_test.c
index 48e2f791..69ec4461 100644
--- a/auto_tests/tox_one_test.c
+++ b/auto_tests/tox_one_test.c
@@ -5,17 +5,15 @@
5#include "config.h" 5#include "config.h"
6#endif 6#endif
7 7
8#include "check_compat.h"
9
10#include <stdlib.h> 8#include <stdlib.h>
11#include <time.h> 9#include <string.h>
12 10
11#include "../testing/misc_tools.h"
13#include "../toxcore/ccompat.h" 12#include "../toxcore/ccompat.h"
14#include "../toxcore/crypto_core.h" 13#include "../toxcore/crypto_core.h"
15#include "../toxcore/tox.h" 14#include "../toxcore/tox.h"
16#include "../toxcore/util.h" 15#include "../toxcore/util.h"
17 16#include "check_compat.h"
18#include "helpers.h"
19 17
20static void set_random_name_and_status_message(Tox *tox, uint8_t *name, uint8_t *status_message) 18static void set_random_name_and_status_message(Tox *tox, uint8_t *name, uint8_t *status_message)
21{ 19{
@@ -146,8 +144,6 @@ int main(void)
146{ 144{
147 setvbuf(stdout, nullptr, _IONBF, 0); 145 setvbuf(stdout, nullptr, _IONBF, 0);
148 146
149 srand((unsigned int) time(nullptr));
150
151 Suite *tox = tox_suite(); 147 Suite *tox = tox_suite();
152 SRunner *test_runner = srunner_create(tox); 148 SRunner *test_runner = srunner_create(tox);
153 149