diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-11-15 12:35:39 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-11-15 12:35:39 +0000 |
commit | 7c2fcd363aa3b12b434830f118d62aa0e056e57a (patch) | |
tree | e08a58a1be7a7f4c22854149b8a8e5453711a539 /tests/talloc-cache.c | |
parent | 98f8f67a1dec5f97dcc9abeca4abcd8620395c27 (diff) | |
download | mpfr-7c2fcd363aa3b12b434830f118d62aa0e056e57a.tar.gz |
mpfr_mp_memory_cleanup() now returns an error code (currently always 0)
to avoid a future prototype change in case errors would be possible.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11821 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/talloc-cache.c')
-rw-r--r-- | tests/talloc-cache.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/talloc-cache.c b/tests/talloc-cache.c index dc5a3eb18..811c49521 100644 --- a/tests/talloc-cache.c +++ b/tests/talloc-cache.c @@ -83,11 +83,13 @@ int main (void) { mpfr_t x; + int err; tests_memory_disabled = 2; tests_start_mpfr (); - mpfr_mp_memory_cleanup (); + err = mpfr_mp_memory_cleanup (); + MPFR_ASSERTN (err == 0); mp_set_memory_functions (my_alloc1, my_realloc1, my_free1); mpfr_init2 (x, 53); @@ -95,7 +97,8 @@ main (void) mpfr_sin (x, x, MPFR_RNDN); mpfr_clear (x); - mpfr_mp_memory_cleanup (); + err = mpfr_mp_memory_cleanup (); + MPFR_ASSERTN (err == 0); mp_set_memory_functions (my_alloc2, my_realloc2, my_free2); mpfr_init2 (x, 1000); |