diff options
Diffstat (limited to 'auto_tests/TCP_test.c')
-rw-r--r-- | auto_tests/TCP_test.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/auto_tests/TCP_test.c b/auto_tests/TCP_test.c index 8e75fae0..25827df3 100644 --- a/auto_tests/TCP_test.c +++ b/auto_tests/TCP_test.c | |||
@@ -14,6 +14,8 @@ | |||
14 | 14 | ||
15 | #include "../toxcore/util.h" | 15 | #include "../toxcore/util.h" |
16 | 16 | ||
17 | #include "helpers.h" | ||
18 | |||
17 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | 19 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) |
18 | #define c_sleep(x) Sleep(1*x) | 20 | #define c_sleep(x) Sleep(1*x) |
19 | #else | 21 | #else |
@@ -489,14 +491,6 @@ START_TEST(test_client_invalid) | |||
489 | } | 491 | } |
490 | END_TEST | 492 | END_TEST |
491 | 493 | ||
492 | #define DEFTESTCASE(NAME) \ | ||
493 | TCase *tc_##NAME = tcase_create(#NAME); \ | ||
494 | tcase_add_test(tc_##NAME, test_##NAME); \ | ||
495 | suite_add_tcase(s, tc_##NAME); | ||
496 | |||
497 | #define DEFTESTCASE_SLOW(NAME, TIMEOUT) \ | ||
498 | DEFTESTCASE(NAME) \ | ||
499 | tcase_set_timeout(tc_##NAME, TIMEOUT); | ||
500 | Suite *TCP_suite(void) | 494 | Suite *TCP_suite(void) |
501 | { | 495 | { |
502 | Suite *s = suite_create("TCP"); | 496 | Suite *s = suite_create("TCP"); |