summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2012-12-15 16:23:06 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2012-12-15 16:23:06 +0100
commit44966dc6afa7d1552765452237150ea13529d3a7 (patch)
tree99c3356f0bdf3565e94292db62c98132b19f0a95 /tests
parentaaf2931a1a75e6031aa6b4702c7878c8b9627272 (diff)
downloadgmp-44966dc6afa7d1552765452237150ea13529d3a7.tar.gz
tests/mpn/toom-sqr-shared.h: skip initializations when the test is skipped.
Diffstat (limited to 'tests')
-rw-r--r--tests/mpn/toom-sqr-shared.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mpn/toom-sqr-shared.h b/tests/mpn/toom-sqr-shared.h
index c31fdc5e0..2de628e8c 100644
--- a/tests/mpn/toom-sqr-shared.h
+++ b/tests/mpn/toom-sqr-shared.h
@@ -54,6 +54,8 @@ main (int argc, char **argv)
}
tests_start ();
+
+ if (MAX_AN > MIN_AN) {
rands = RANDS;
ap = TMP_ALLOC_LIMBS (MAX_AN);
@@ -62,7 +64,6 @@ main (int argc, char **argv)
scratch
= 1+TMP_ALLOC_LIMBS (mpn_toomN_sqr_itch (MAX_AN) + 2);
- if (MAX_AN > MIN_AN)
for (test = 0; test < count; test++)
{
unsigned size_min;
@@ -121,6 +122,7 @@ main (int argc, char **argv)
}
}
TMP_FREE;
+ }
tests_end ();
return 0;