From 19a0b9a38273035e50bd16cd8eadd806bcdfcfb0 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Sun, 28 Jan 2007 03:05:43 +0000 Subject: [PATCH] fixed interval in read testcase, handles check without timeout --- tests/read.c | 2 +- tests/test.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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