Disabled timeout; fixed compilation warning.
This commit is contained in:
parent
cb3a4ae20d
commit
229a296f54
1 changed files with 4 additions and 1 deletions
|
@ -84,7 +84,7 @@ START_TEST(lhtableTest)
|
||||||
|
|
||||||
for(long i = 0; i < NUM_ENTRIES; i+=2) {
|
for(long i = 0; i < NUM_ENTRIES; i+=2) {
|
||||||
char * key;
|
char * key;
|
||||||
int keyLen = asprintf(&key, "--> %ld <--\n", i);
|
asprintf(&key, "--> %ld <--\n", i);
|
||||||
|
|
||||||
assert((void*)i == LH_ENTRY(find)(t, key, strlen(key)));
|
assert((void*)i == LH_ENTRY(find)(t, key, strlen(key)));
|
||||||
LH_ENTRY(remove)(t, keys[i], strlen(keys[i]));
|
LH_ENTRY(remove)(t, keys[i], strlen(keys[i]));
|
||||||
|
@ -107,6 +107,9 @@ Suite * check_suite(void) {
|
||||||
/* Begin a new test */
|
/* Begin a new test */
|
||||||
TCase *tc = tcase_create("lhtable");
|
TCase *tc = tcase_create("lhtable");
|
||||||
|
|
||||||
|
tcase_set_timeout(tc, 0); // disable timeouts
|
||||||
|
|
||||||
|
|
||||||
/* Sub tests are added, one per line, here */
|
/* Sub tests are added, one per line, here */
|
||||||
|
|
||||||
tcase_add_test(tc, lhtableTest);
|
tcase_add_test(tc, lhtableTest);
|
||||||
|
|
Loading…
Reference in a new issue