Disabled timeout; fixed compilation warning.

This commit is contained in:
Sears Russell 2006-05-24 23:25:01 +00:00
parent cb3a4ae20d
commit 229a296f54

View file

@ -84,7 +84,7 @@ START_TEST(lhtableTest)
for(long i = 0; i < NUM_ENTRIES; i+=2) {
char * key;
int keyLen = asprintf(&key, "--> %ld <--\n", i);
asprintf(&key, "--> %ld <--\n", i);
assert((void*)i == LH_ENTRY(find)(t, key, strlen(key)));
LH_ENTRY(remove)(t, keys[i], strlen(keys[i]));
@ -107,6 +107,9 @@ Suite * check_suite(void) {
/* Begin a new test */
TCase *tc = tcase_create("lhtable");
tcase_set_timeout(tc, 0); // disable timeouts
/* Sub tests are added, one per line, here */
tcase_add_test(tc, lhtableTest);