diff --git a/tests/read.c b/tests/read.c index 310aaab..0458139 100644 --- a/tests/read.c +++ b/tests/read.c @@ -41,7 +41,7 @@ START_TEST(test_read_putshort) char* p; int i; - for (i = 0; i < 1; i++) { + for (i = 0; i < 65536; i++) { p = (char*)&k; putshort(&p, i); fail_unless(ntohs(k) == i, diff --git a/tests/test.h b/tests/test.h index 1e9fdf0..36a31d6 100644 --- a/tests/test.h +++ b/tests/test.h @@ -23,5 +23,9 @@ TCase *test_encoding_create_tests(); TCase *test_read_create_tests(); char *va_str(const char *, ...); + +#ifndef tcase_set_timeout +#define tcase_set_timeout(...) +#endif #endif