aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/atest-exp.c7
-rw-r--r--math/atest-exp2.c7
-rw-r--r--math/atest-sincos.c7
-rw-r--r--math/test-matherr.c7
-rw-r--r--math/test-misc.c7
-rw-r--r--math/test-powl.c7
-rw-r--r--math/tst-definitions.c7
7 files changed, 35 insertions, 14 deletions
diff --git a/math/atest-exp.c b/math/atest-exp.c
index 3a538b251d..6a551deef0 100644
--- a/math/atest-exp.c
+++ b/math/atest-exp.c
@@ -102,8 +102,8 @@ mpn_bitsize(const mp_limb_t *SRC_PTR, mp_size_t SIZE)
return i * mpbpl + j;
}
-int
-main (void)
+static int
+do_test (void)
{
mp1 ex, x, xt, e2, e3;
int i;
@@ -190,3 +190,6 @@ main (void)
return failures == 0 ? 0 : 1;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/math/atest-exp2.c b/math/atest-exp2.c
index 3442715366..945bb7accf 100644
--- a/math/atest-exp2.c
+++ b/math/atest-exp2.c
@@ -144,8 +144,8 @@ mpn_bitsize(const mp_limb_t *SRC_PTR, mp_size_t SIZE)
return i * mpbpl + j;
}
-int
-main (void)
+static int
+do_test (void)
{
mp1 ex, x, xt, e2, e3;
int i;
@@ -227,3 +227,6 @@ main (void)
return failures == 0 ? 0 : 1;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/math/atest-sincos.c b/math/atest-sincos.c
index 5ad59b224d..1f5e7307e9 100644
--- a/math/atest-sincos.c
+++ b/math/atest-sincos.c
@@ -141,8 +141,8 @@ mpn_bitsize (const mp_limb_t *SRC_PTR, mp_size_t SIZE)
return i * mpbpl + j;
}
-int
-main (void)
+static int
+do_test (void)
{
mp1 si, co, x, ox, xt, s2, c2, s3, c3;
int i;
@@ -277,3 +277,6 @@ main (void)
return (sin_failures == 0 && cos_failures == 0) ? 0 : 1;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/math/test-matherr.c b/math/test-matherr.c
index cd09a3981c..6983879da4 100644
--- a/math/test-matherr.c
+++ b/math/test-matherr.c
@@ -12,10 +12,13 @@ matherr (struct exception *s)
return 1;
}
-int
-main (void)
+static int
+do_test (void)
{
_LIB_VERSION = _SVID_;
acos (2.0);
return fail;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/math/test-misc.c b/math/test-misc.c
index 3fd2bca6ac..4801bfe38f 100644
--- a/math/test-misc.c
+++ b/math/test-misc.c
@@ -25,8 +25,8 @@
#include <math-tests.h>
-int
-main (void)
+static int
+do_test (void)
{
int result = 0;
@@ -1201,3 +1201,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/math/test-powl.c b/math/test-powl.c
index fd2a1cbae4..66ef886ab6 100644
--- a/math/test-powl.c
+++ b/math/test-powl.c
@@ -21,8 +21,8 @@
#include <float.h>
#include <ieee754.h>
-int
-main (void)
+static int
+do_test (void)
{
int result = 0;
@@ -48,3 +48,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"
diff --git a/math/tst-definitions.c b/math/tst-definitions.c
index 2501c8c3d4..76a41256e8 100644
--- a/math/tst-definitions.c
+++ b/math/tst-definitions.c
@@ -21,8 +21,8 @@
#include <stdio.h>
-int
-main (void)
+static int
+do_test (void)
{
int result = 0;
@@ -44,3 +44,6 @@ main (void)
return result;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"