* update tests to match memory api changes
This commit was SVN r8531.
Этот коммит содержится в:
родитель
ec08143923
Коммит
902122e248
@ -31,13 +31,13 @@ int counter = 0;
|
||||
const int bigsize = 16 * 1024 * 1024;
|
||||
|
||||
static void
|
||||
alloc_callback(void *buf, size_t length, void *cbdata)
|
||||
alloc_callback(void *buf, size_t length, void *cbdata, bool extra)
|
||||
{
|
||||
counter++;
|
||||
}
|
||||
|
||||
static void
|
||||
release_callback(void *buf, size_t length, void *cbdata)
|
||||
release_callback(void *buf, size_t length, void *cbdata, bool extra)
|
||||
{
|
||||
printf("\trelease callback with %lx, %d\n", (unsigned long) buf, (int) length);
|
||||
counter--;
|
||||
|
@ -32,7 +32,7 @@ int size = 10 * 1024 * 1024;
|
||||
|
||||
extern "C" {
|
||||
static void
|
||||
callback(void *buf, size_t length, void *cbdata)
|
||||
callback(void *buf, size_t length, void *cbdata, bool extra)
|
||||
{
|
||||
printf("\tcallback with %lx, %d\n", (unsigned long) buf, (int) length);
|
||||
ret--;
|
||||
|
@ -32,7 +32,7 @@
|
||||
static void* ptrs[iters];
|
||||
|
||||
static void
|
||||
callback(void *buf, size_t length, void *cbdata)
|
||||
callback(void *buf, size_t length, void *cbdata, bool extra)
|
||||
{
|
||||
}
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user