From 18ce6cf71bbea5af1bace6b235e0a5499b9c7ad2 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 20 Jan 2014 16:36:22 +0000 Subject: [tests] * Moved GMP version check from tversion.c to the test_version() function of tests.c, so that this check is done in every test. This function now returns an int, as there are now 3 cases: 1. An error in MPFR version check is a fatal error: test_version() exits with an error (exit status = 1). 2. An error in GMP version check is a non-fatal error: if there are no errors in MPFR version check, test_version() returns with value 1. 3. Otherwise test_version() returns with value 0 (everything is file). * tversion.c still runs test_version(), but fails if this function returns with an error, i.e. any error is fatal for this test. Note: for the other tests, one just has a message in the output in case of GMP version mismatch. * mpfr-test.h: updated test_version() prototype. * Makefile.am: removed the second tversion invocation. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/vl-am113@8807 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/mpfr-test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/mpfr-test.h') diff --git a/tests/mpfr-test.h b/tests/mpfr-test.h index dafe98df0..5e8e6a1c3 100644 --- a/tests/mpfr-test.h +++ b/tests/mpfr-test.h @@ -74,7 +74,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., extern "C" { #endif -void test_version _MPFR_PROTO ((void)); +int test_version _MPFR_PROTO ((void)); void tests_memory_start _MPFR_PROTO ((void)); void tests_memory_end _MPFR_PROTO ((void)); -- cgit v1.2.1