]> pd.if.org Git - nbds/blobdiff - test/txn_test.c
work in progress
[nbds] / test / txn_test.c
index 5a7606ad7a81fbea60941069bf1e902bad1a1c1d..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,9 +25,8 @@ void test1 (CuTest* tc) {
 }
 
 int main (void) {
-
-    nbd_init();
-    txn_init();
+    nbd_thread_init();
+    lwt_set_trace_level("x3h3");
 
     CuString *output = CuStringNew();
     CuSuite* suite = CuSuiteNew();