aboutsummaryrefslogtreecommitdiff
path: root/tests/list_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/list_check.c')
-rw-r--r--tests/list_check.c9
1 files changed, 3 insertions, 6 deletions
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;
}