diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-04-22 08:33:57 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-04-22 08:33:57 +0000 |
commit | 881eae76d2544c926c76e94c51b2986616a0d9e6 (patch) | |
tree | 7310a9e926f160e60a1f2e7bc4a79a4d65aeb89b /tests/tmul.c | |
parent | 18c1deacf7780b5c11a5cfe20451ad9256064169 (diff) | |
download | mpfr-881eae76d2544c926c76e94c51b2986616a0d9e6.tar.gz |
Improved fix for problem dealt with in r6174: use function src_fopen()
(from tests.c) instead of a macro MPFR_SRCDIR.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6175 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tmul.c')
-rw-r--r-- | tests/tmul.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/tmul.c b/tests/tmul.c index e0b568979..2b1a80b77 100644 --- a/tests/tmul.c +++ b/tests/tmul.c @@ -25,10 +25,6 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-test.h" -#ifndef MPFR_SRCDIR -#define MPFR_SRCDIR "." -#endif - #ifdef CHECK_EXTERNAL static int test_mul (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode) @@ -480,10 +476,10 @@ check_regression (void) mpfr_inits2 (6177, x, y, z, (mpfr_ptr) 0); /* we read long strings from a file since ISO C90 does not support strings of length > 509 */ - fp = fopen (MPFR_SRCDIR"/tmul.dat", "r"); + fp = src_fopen ("tmul.dat", "r"); if (fp == NULL) { - fprintf (stderr, "Error, cannot open "MPFR_SRCDIR"/tmul.dat\n"); + fprintf (stderr, "Error, cannot open tmul.dat in srcdir\n"); exit (1); } get_string (s, fp); |