diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-16 22:46:02 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-21 20:44:26 +0000 |
commit | 7245ac11ef9be2420c8356c12acc79f93ea211bb (patch) | |
tree | e971c5c6e10c2310afe4b2cd80212feac9839f2a /auto_tests/file_transfer_test.c | |
parent | 7c2b95ef5e4ccdae01bd104aa7400294c9ea391b (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/file_transfer_test.c')
-rw-r--r-- | auto_tests/file_transfer_test.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/auto_tests/file_transfer_test.c b/auto_tests/file_transfer_test.c index 6e8a3c53..a6e45431 100644 --- a/auto_tests/file_transfer_test.c +++ b/auto_tests/file_transfer_test.c | |||
@@ -1,25 +1,20 @@ | |||
1 | /* File transfer test. | 1 | /* File transfer test. |
2 | */ | 2 | */ |
3 | 3 | ||
4 | #ifndef _XOPEN_SOURCE | ||
5 | #define _XOPEN_SOURCE 600 | ||
6 | #endif | ||
7 | |||
8 | #ifdef HAVE_CONFIG_H | 4 | #ifdef HAVE_CONFIG_H |
9 | #include "config.h" | 5 | #include "config.h" |
10 | #endif | 6 | #endif |
11 | 7 | ||
12 | #include "check_compat.h" | ||
13 | |||
14 | #include <stdio.h> | 8 | #include <stdio.h> |
15 | #include <stdlib.h> | 9 | #include <stdlib.h> |
10 | #include <string.h> | ||
16 | #include <time.h> | 11 | #include <time.h> |
17 | 12 | ||
13 | #include "../testing/misc_tools.h" | ||
18 | #include "../toxcore/ccompat.h" | 14 | #include "../toxcore/ccompat.h" |
19 | #include "../toxcore/tox.h" | 15 | #include "../toxcore/tox.h" |
20 | #include "../toxcore/util.h" | 16 | #include "../toxcore/util.h" |
21 | 17 | #include "check_compat.h" | |
22 | #include "helpers.h" | ||
23 | 18 | ||
24 | /* The Travis-CI container responds poorly to ::1 as a localhost address | 19 | /* The Travis-CI container responds poorly to ::1 as a localhost address |
25 | * You're encouraged to -D FORCE_TESTS_IPV6 on a local test */ | 20 | * You're encouraged to -D FORCE_TESTS_IPV6 on a local test */ |