Tweaked for memory requirements on OSX.

git-svn-id: file:///svn/unbound/trunk@227 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-04-03 14:14:11 +00:00
parent 3749f1e1d9
commit e7228803a0
2 changed files with 3 additions and 3 deletions

View file

@ -245,7 +245,7 @@ test_short_table(struct lruhash* table)
}
/** number of hash test max */
#define HASHTESTMAX 32
#define HASHTESTMAX 25
/** test adding a random element */
static void

View file

@ -377,12 +377,12 @@ void slabhash_test()
/* also small in size so that reclaim has to be done quickly. */
struct slabhash* table;
printf("slabhash test\n");
table = slabhash_create(4, 2, 4096,
table = slabhash_create(4, 2, 5200,
test_sizefunc, test_compfunc, test_delkey, test_deldata, NULL);
test_short_table(table);
test_long_table(table);
slabhash_delete(table);
table = slabhash_create(4, 2, 4096,
table = slabhash_create(4, 2, 5200,
test_sizefunc, test_compfunc, test_delkey, test_deldata, NULL);
test_threaded_table(table);
slabhash_delete(table);