test/map_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 33
9c219a62070d
child 44
46356d74e873
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

     1 /* 
     2  *
     3  */
     5 #ifndef MAP_TESTS_H
     6 #define	MAP_TESTS_H
     8 #include "ucx/test.h"
     9 #include "ucx/map.h"
    11 #ifdef	__cplusplus
    12 extern "C" {
    13 #endif
    15 UCX_TEST_DECLARE(test_ucx_map_new)
    16 UCX_TEST_DECLARE(test_ucx_key)
    17 UCX_TEST_DECLARE(test_ucx_map_put)
    18 UCX_TEST_DECLARE(test_ucx_map_get)
    19 UCX_TEST_DECLARE(test_ucx_map_iterator)
    20 UCX_TEST_DECLARE(test_ucx_map_iterator_chain)
    21 UCX_TEST_DECLARE(test_ucx_map_store_load)
    24 #ifdef	__cplusplus
    25 }
    26 #endif
    28 #endif	/* MAP_TESTS_H */

mercurial