diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-06-09 12:15:14 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-06-09 12:15:14 +0000 |
commit | 73fc3d48eb2ec842b670bac82199912fd382a6b5 (patch) | |
tree | 029d7a582a7bf275c29491b4f836673f0942ccd6 /tests/mpfr-test.h | |
parent | 02571b05f694673c75ce656572685f4ac422c0d5 (diff) | |
download | mpfr-73fc3d48eb2ec842b670bac82199912fd382a6b5.tar.gz |
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
Diffstat (limited to 'tests/mpfr-test.h')
-rw-r--r-- | tests/mpfr-test.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |