From 03f7a75e54c34d78f469f1fed38e2d9db979d8cb Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 20 Feb 2018 22:01:26 +0100 Subject: [PATCH] Add more check --- tests/test-mshared.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test-mshared.c b/tests/test-mshared.c index 80a9d3d4..66929b37 100644 --- a/tests/test-mshared.c +++ b/tests/test-mshared.c @@ -162,7 +162,10 @@ static void test_ressource(int n) shared_ressource_it (onemore, ressource); assert (shared_ressource_end_p(onemore)); for(int i = n-1; i >= 0 ; i--) { + const mpz_t *z = shared_ressource_cref(copy[i]); + assert (z != NULL); shared_ressource_end (copy[i], ressource); + assert (shared_ressource_end_p(copy[i])); shared_ressource_it (onemore, ressource); assert (!shared_ressource_end_p(onemore)); shared_ressource_end (onemore, ressource);