diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-09-25 08:15:42 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-09-25 08:15:42 +0000 |
commit | fd5e5221f3d42f1d1e29d99a15ac43a76460bf9b (patch) | |
tree | 332aef339e58cafd2dc32ee33efc6e2cbb66852a /tests/tcbrt.c | |
parent | 788b255e420f8d4ba0f0b43ce87b00b62d60a896 (diff) | |
download | mpfr-fd5e5221f3d42f1d1e29d99a15ac43a76460bf9b.tar.gz |
Changed the remaining stderr to stdout.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2449 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcbrt.c')
-rw-r--r-- | tests/tcbrt.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/tcbrt.c b/tests/tcbrt.c index ede5f2cd1..0eb918fd2 100644 --- a/tests/tcbrt.c +++ b/tests/tcbrt.c @@ -41,7 +41,7 @@ main (void) mpfr_cbrt (x, x, GMP_RNDN); if (mpfr_get_d1 (x) != 9.43166207799662426048e-01) { - fprintf (stderr, "Error (1)\n"); + printf ("Error (1)\n"); exit (1); } @@ -54,20 +54,20 @@ main (void) mpfr_cbrt (x, x, r); if (mpfr_cmp_ui (x, 1)) { - fprintf (stderr, "Error in mpfr_cbrt for x=1, rnd=%s\ngot ", - mpfr_print_rnd_mode (r)); - mpfr_out_str (stderr, 2, 0, x, GMP_RNDN); - fprintf (stderr, "\n"); + printf ("Error in mpfr_cbrt for x=1, rnd=%s\ngot ", + mpfr_print_rnd_mode (r)); + mpfr_out_str (stdout, 2, 0, x, GMP_RNDN); + printf ("\n"); exit (1); } mpfr_set_si (x, -1, GMP_RNDN); mpfr_cbrt (x, x, r); if (mpfr_cmp_si (x, -1)) { - fprintf (stderr, "Error in mpfr_cbrt for x=-1, rnd=%s\ngot ", - mpfr_print_rnd_mode (r)); - mpfr_out_str (stderr, 2, 0, x, GMP_RNDN); - fprintf (stderr, "\n"); + printf ("Error in mpfr_cbrt for x=-1, rnd=%s\ngot ", + mpfr_print_rnd_mode (r)); + mpfr_out_str (stdout, 2, 0, x, GMP_RNDN); + printf ("\n"); exit (1); } @@ -81,11 +81,11 @@ main (void) mpfr_cbrt (x, x, GMP_RNDN); if (mpfr_cmp_si_2exp (x, 3, i)) { - fprintf (stderr, "Error in mpfr_cbrt for " - "x = 27.0 * 2^(%d), rnd=%s\ngot ", - 3*i, mpfr_print_rnd_mode (r)); - mpfr_out_str (stderr, 2, 0, x, GMP_RNDN); - fprintf (stderr, "\ninstead of 3 * 2^(%d)\n", i); + printf ("Error in mpfr_cbrt for " + "x = 27.0 * 2^(%d), rnd=%s\ngot ", + 3*i, mpfr_print_rnd_mode (r)); + mpfr_out_str (stdout, 2, 0, x, GMP_RNDN); + printf ("\ninstead of 3 * 2^(%d)\n", i); exit (1); } } |