test/mpool_tests.h

Thu, 04 Oct 2012 16:03:18 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 04 Oct 2012 16:03:18 +0200
changeset 42
ff3dd1ee7dee
parent 28
1666cbeb1db8
child 59
c80c910fe191
permissions
-rw-r--r--

(broken-commit) - added load and store functions, tests failing

some evil crash happens when executing the test - remove the strcmp calls in the test case for the store and load function and everything "works"

the error must be somewhere else - maybe something that should not be freed is freed during the test

/* 
 *
 */

#ifndef MPOOL_TESTS_H
#define	MPOOL_TESTS_H

#include "ucx/test.h"
#include "ucx/mempool.h"

#ifdef	__cplusplus
extern "C" {
#endif

UCX_TEST_DECLARE(test_ucx_mempool_new)
UCX_TEST_DECLARE(test_ucx_mempool_malloc)
UCX_TEST_DECLARE(test_ucx_mempool_malloc_with_chcap)
UCX_TEST_DECLARE(test_ucx_mempool_calloc)
UCX_TEST_DECLARE(test_ucx_mempool_set_destr)
UCX_TEST_DECLARE(test_ucx_mempool_reg_destr)
UCX_TEST_DECLARE(test_ucx_mempool_realloc)

#ifdef	__cplusplus
}
#endif

#endif	/* MPOOL_TESTS_H */

mercurial