diff options
Diffstat (limited to 'math')
-rw-r--r-- | math/atest-exp.c | 7 | ||||
-rw-r--r-- | math/atest-exp2.c | 7 | ||||
-rw-r--r-- | math/atest-sincos.c | 7 | ||||
-rw-r--r-- | math/test-matherr.c | 7 | ||||
-rw-r--r-- | math/test-misc.c | 7 | ||||
-rw-r--r-- | math/test-powl.c | 7 | ||||
-rw-r--r-- | math/tst-definitions.c | 7 |
7 files changed, 35 insertions, 14 deletions
diff --git a/math/atest-exp.c b/math/atest-exp.c index 3a538b2..6a551de 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 3442715..945bb7a 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 5ad59b2..1f5e730 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 cd09a39..6983879 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 3fd2bca..4801bfe 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 fd2a1cb..66ef886 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 2501c8c..76a4125 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" |