test-tool: Make it possible to disable memory caching

Disable memory caching in libiscsi if the environment variable
LIBISCSI_CACHE_ALLOCATIONS has been set to zero. This makes
Valgrind reports more meaningful.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
Bart Van Assche
2015-04-20 09:56:35 +02:00
committed by Ronnie Sahlberg
parent d8de6531f8
commit cf4076dba9
5 changed files with 37 additions and 11 deletions

View File

@@ -51,6 +51,8 @@ struct sockaddr;
"<host>[:<port>]\""
EXTERN void iscsi_set_cache_allocations(int ca);
/*
* The following three functions are used to integrate libiscsi in an event
* system.