mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-26 01:59:19 +02:00
fixed interval in read testcase, handles check without timeout
This commit is contained in:
parent
8babf3f1a6
commit
19a0b9a382
|
@ -41,7 +41,7 @@ START_TEST(test_read_putshort)
|
||||||
char* p;
|
char* p;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < 1; i++) {
|
for (i = 0; i < 65536; i++) {
|
||||||
p = (char*)&k;
|
p = (char*)&k;
|
||||||
putshort(&p, i);
|
putshort(&p, i);
|
||||||
fail_unless(ntohs(k) == i,
|
fail_unless(ntohs(k) == i,
|
||||||
|
|
|
@ -24,4 +24,8 @@ TCase *test_read_create_tests();
|
||||||
|
|
||||||
char *va_str(const char *, ...);
|
char *va_str(const char *, ...);
|
||||||
|
|
||||||
|
#ifndef tcase_set_timeout
|
||||||
|
#define tcase_set_timeout(...)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue