]> pd.if.org Git - nbds/blobdiff - test/txn_test.c
add hazard pointer implementation. buggy
[nbds] / test / txn_test.c
index 80b8f93dd3dd8550a33673b1a1a774828a985c8c..8ad809635b0eae8ce09705585a71cc30d68bf81b 100644 (file)
@@ -13,7 +13,7 @@ void test1 (CuTest* tc) {
     map_t *map = map_alloc(&ht_map_impl, NULL);
     txn_t *t1 = txn_begin(map);
     txn_t *t2 = txn_begin(map);
-    void *k1 = (void *)1;
+    map_key_t k1 = (map_key_t)1;
     txn_map_set(t1, k1, 2);
     txn_map_set(t1, k1, 3);
     ASSERT_EQUAL( DOES_NOT_EXIST, txn_map_get(t2, k1) );
@@ -26,7 +26,6 @@ void test1 (CuTest* tc) {
 
 int main (void) {
 
-    nbd_init();
     txn_init();
 
     CuString *output = CuStringNew();