X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=test%2Ftxn_test.c;h=4728ef971ec3553584efad4fd0e62d550ed64c19;hp=5a7606ad7a81fbea60941069bf1e902bad1a1c1d;hb=75b0d2f02f548b3a1e4daba8b0d55eea2fb24e92;hpb=2cce67f0002cdb6dcdc2ab8ccf837e3d2b3336de diff --git a/test/txn_test.c b/test/txn_test.c index 5a7606a..4728ef9 100644 --- a/test/txn_test.c +++ b/test/txn_test.c @@ -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();