From 73fc3d48eb2ec842b670bac82199912fd382a6b5 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 9 Jun 2016 12:15:14 +0000 Subject: Other changes concerning the memory limit for the tests. * Export the tests_memory_limit variable so that it can be accessed in test programs (e.g. read by tversion as mentioned below, or modified by a test program when executed with particular arguments). * In tversion, print a warning when the memory limit has been modified (with the MPFR_TESTS_MEMORY_LIMIT environment variable). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10460 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/mpfr-test.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/mpfr-test.h') diff --git a/tests/mpfr-test.h b/tests/mpfr-test.h index 221375386..616ef4119 100644 --- a/tests/mpfr-test.h +++ b/tests/mpfr-test.h @@ -79,6 +79,9 @@ extern "C" { int test_version (void); +/* Memory handling */ +#define DEFAULT_MEMORY_LIMIT (1UL << 22) +extern size_t tests_memory_limit; void tests_memory_start (void); void tests_memory_end (void); -- cgit v1.2.1