summaryrefslogtreecommitdiff
path: root/tests/mpfr-test.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-01-20 16:36:22 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-01-20 16:36:22 +0000
commit18ce6cf71bbea5af1bace6b235e0a5499b9c7ad2 (patch)
treeebc071344d27e535f3600ed893f4c993a9712d56 /tests/mpfr-test.h
parent9124782d5e4500d1846a5b27c307e67871d97e44 (diff)
downloadmpfr-18ce6cf71bbea5af1bace6b235e0a5499b9c7ad2.tar.gz
[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
Diffstat (limited to 'tests/mpfr-test.h')
-rw-r--r--tests/mpfr-test.h2
1 files changed, 1 insertions, 1 deletions
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));