]> pd.if.org Git - nbds/blobdiff - test/txn_test.c
work in progress
[nbds] / test / txn_test.c
index 8ad809635b0eae8ce09705585a71cc30d68bf81b..4728ef971ec3553584efad4fd0e62d550ed64c19 100644 (file)
@@ -10,7 +10,7 @@
 #define ASSERT_EQUAL(x, y) CuAssertIntEquals(tc, x, y)
 
 void test1 (CuTest* tc) {
-    map_t *map = map_alloc(&ht_map_impl, NULL);
+    map_t *map = map_alloc(&MAP_IMPL_HT, NULL);
     txn_t *t1 = txn_begin(map);
     txn_t *t2 = txn_begin(map);
     map_key_t k1 = (map_key_t)1;
@@ -25,8 +25,8 @@ void test1 (CuTest* tc) {
 }
 
 int main (void) {
-
-    txn_init();
+    nbd_thread_init();
+    lwt_set_trace_level("x3h3");
 
     CuString *output = CuStringNew();
     CuSuite* suite = CuSuiteNew();