diff options
author | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-14 08:17:43 +0000 |
---|---|---|
committer | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-14 08:17:43 +0000 |
commit | dc80d65a1d396830fc900cfe838bfb5c931f7b59 (patch) | |
tree | 5af48f95174ab88e16998c52fa5d3d9764567d53 /tests/tfmod.c | |
parent | c1009e1d4b1ae8557246ec68b2d776cdb3817568 (diff) | |
download | mpfr-dc80d65a1d396830fc900cfe838bfb5c931f7b59.tar.gz |
output errors to stdout
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5078 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tfmod.c')
-rw-r--r-- | tests/tfmod.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/tfmod.c b/tests/tfmod.c index 31d973124..82bf6e6d9 100644 --- a/tests/tfmod.c +++ b/tests/tfmod.c @@ -67,16 +67,16 @@ slow_fmod (mpfr_ptr r, mpfr_srcptr x, mpfr_srcptr y, mp_rnd_t rnd) static void test_failed (mpfr_t erem, mpfr_t grem, mpfr_t x, mpfr_t y, mp_rnd_t rnd) { - fprintf (stderr, "error : mpfr_fmod (r, x, y, rnd)\n x = "); - mpfr_out_str (stderr, 10, 0, x, GMP_RNDD); - fprintf (stderr, "\n y = "); - mpfr_out_str (stderr, 10, 0, y, GMP_RNDD); - fprintf (stderr, "\nrnd = %s\n", mpfr_print_rnd_mode (rnd)); - fprintf (stderr, "\n expected r = "); - mpfr_out_str (stderr, 10, 0, erem, GMP_RNDD); - fprintf (stderr, "\n got r = "); - mpfr_out_str (stderr, 10, 0, grem, GMP_RNDD); - fprintf (stderr, "\n"); + fprintf (stdout, "error : mpfr_fmod (r, x, y, rnd)\n x = "); + mpfr_out_str (stdout, 10, 0, x, GMP_RNDD); + fprintf (stdout, "\n y = "); + mpfr_out_str (stdout, 10, 0, y, GMP_RNDD); + fprintf (stdout, "\nrnd = %s\n", mpfr_print_rnd_mode (rnd)); + fprintf (stdout, "\n expected r = "); + mpfr_out_str (stdout, 10, 0, erem, GMP_RNDD); + fprintf (stdout, "\n got r = "); + mpfr_out_str (stdout, 10, 0, grem, GMP_RNDD); + fprintf (stdout, "\n"); mpfr_clears (erem, grem, x, y, (void *) 0); exit (1); @@ -112,7 +112,7 @@ special (void) test_failed (r, x, x, y, GMP_RNDN); if (inexact) { - fprintf (stderr, "error : mpfr_fmod (NaN, NaN) should be exact\n"); + fprintf (stdout, "error : mpfr_fmod (NaN, NaN) should be exact\n"); goto error; } @@ -123,7 +123,7 @@ special (void) test_failed (r, x, x, y, GMP_RNDN); if (inexact) { - fprintf (stderr, "error : mpfr_fmod (NaN, +0) should be exact\n"); + fprintf (stdout, "error : mpfr_fmod (NaN, +0) should be exact\n"); goto error; } @@ -134,7 +134,7 @@ special (void) test_failed (r, x, x, y, GMP_RNDN); if (inexact) { - fprintf (stderr, "error : mpfr_fmod (3.1415, NaN) should be exact\n"); + fprintf (stdout, "error : mpfr_fmod (3.1415, NaN) should be exact\n"); goto error; } @@ -145,7 +145,7 @@ special (void) test_failed (r, x, x, y, GMP_RNDN); if (inexact) { - fprintf (stderr, "error : mpfr_fmod (3.1415, +Inf) should be exact\n"); + fprintf (stdout, "error : mpfr_fmod (3.1415, +Inf) should be exact\n"); goto error; } |