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/tox_strncasecmp_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/tox_strncasecmp_test.c')
-rw-r--r-- | auto_tests/tox_strncasecmp_test.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/auto_tests/tox_strncasecmp_test.c b/auto_tests/tox_strncasecmp_test.c index 377ec2e3..7209facf 100644 --- a/auto_tests/tox_strncasecmp_test.c +++ b/auto_tests/tox_strncasecmp_test.c | |||
@@ -2,17 +2,11 @@ | |||
2 | #include "config.h" | 2 | #include "config.h" |
3 | #endif | 3 | #endif |
4 | 4 | ||
5 | #include "check_compat.h" | ||
6 | |||
7 | #include <stdint.h> | ||
8 | #include <stdlib.h> | 5 | #include <stdlib.h> |
9 | #include <string.h> | 6 | #include <string.h> |
10 | #include <sys/types.h> | ||
11 | #include <time.h> | ||
12 | |||
13 | #include "helpers.h" | ||
14 | 7 | ||
15 | #include "../testing/misc_tools.c" | 8 | #include "../testing/misc_tools.h" |
9 | #include "check_compat.h" | ||
16 | 10 | ||
17 | typedef enum { | 11 | typedef enum { |
18 | NEGATIVE, | 12 | NEGATIVE, |
@@ -181,8 +175,6 @@ int main(void) | |||
181 | { | 175 | { |
182 | setvbuf(stdout, nullptr, _IONBF, 0); | 176 | setvbuf(stdout, nullptr, _IONBF, 0); |
183 | 177 | ||
184 | srand((unsigned int) time(nullptr)); | ||
185 | |||
186 | Suite *s = tox_strncasecmp_suite(); | 178 | Suite *s = tox_strncasecmp_suite(); |
187 | SRunner *test_runner = srunner_create(s); | 179 | SRunner *test_runner = srunner_create(s); |
188 | 180 | ||