From 881eae76d2544c926c76e94c51b2986616a0d9e6 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Wed, 22 Apr 2009 08:33:57 +0000 Subject: 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 --- tests/tmul.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/tmul.c') 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); -- cgit v1.2.1