From 9bff7af92f33701ae7d29a18709981254778ce43 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 9 Feb 2011 14:31:35 +0100 Subject: Make lists work --- tests/list_check.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/list_check.c b/tests/list_check.c index 5e593d0f..1292d114 100644 --- a/tests/list_check.c +++ b/tests/list_check.c @@ -53,6 +53,7 @@ static int test_lists(int num_items) int j; int duplicate = 0; + Reflection *refl; if ( random() > RAND_MAX/2 ) { h = RANDOM_INDEX; @@ -78,7 +79,7 @@ static int test_lists(int num_items) } } - add_refl(list, h, k, l); + refl = add_refl(list, h, k, l); check[i].h = h; check[i].k = k; check[i].l = l; @@ -86,10 +87,6 @@ static int test_lists(int num_items) check[i].dup = duplicate; check[i].found = 0; - if ( (h==-45) && (k==55) && (l==73)) { - printf("added, now %i %i\n", check[i].dup, i); - } - } /* Iterate over the list and check we find everything */ @@ -232,7 +229,7 @@ int main(int argc, char *argv[]) printf("Running list test..."); fflush(stdout); - for ( i=0; i<1; i++ ) { + for ( i=0; i<100; i++ ) { if ( test_lists(4096*random()/RAND_MAX) ) return 1; } -- cgit v1.2.3