Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-03-20 18:51:33 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-03-20 18:51:33 +0300
commita5bb91839219532d133d5561c23120fae6b73cff (patch)
tree415809f3b321fce4f1a268138225551d4e92114b /intern/guardedalloc/test/simpletest
parent4f97f585135b0e040281e95ca59f6d4a9472d637 (diff)
Memory allocator: Clarify consistency check function
Also make it to return truth when everything is good and false otherwise.
Diffstat (limited to 'intern/guardedalloc/test/simpletest')
-rw-r--r--intern/guardedalloc/test/simpletest/memtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/guardedalloc/test/simpletest/memtest.c b/intern/guardedalloc/test/simpletest/memtest.c
index 79d55dd02cc..d306337d0ab 100644
--- a/intern/guardedalloc/test/simpletest/memtest.c
+++ b/intern/guardedalloc/test/simpletest/memtest.c
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
if (verbose > 1) MEM_printmemlist();
/* memory is there: test it */
- error_status = MEM_check_memory_integrity();
+ error_status = MEM_consistency_check();
if (verbose) {
if (error_status) {
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
ip = (int*) p[6];
*(ip+10005) = 0;
- retval = MEM_check_memory_integrity();
+ retval = MEM_consistency_check();
/* the test should have failed */
error_status |= !retval;