|
@@ -8,7 +8,7 @@ static int test_triple_store()
|
|
|
EXPECT_PASS(LSUP_store_setup(&path));
|
|
|
|
|
|
LSUP_MDBStore *store;
|
|
|
- store = LSUP_store_init(path, NULL); // triple store.
|
|
|
+ store = LSUP_store_new(path, NULL); // triple store.
|
|
|
ASSERT(store != NULL, "Error initializing store!");
|
|
|
|
|
|
LSUP_Triple *trp = create_triples();
|
|
@@ -28,7 +28,13 @@ static int test_triple_store()
|
|
|
|
|
|
EXPECT_PASS(LSUP_store_add(store, NULL, ser_trp, NUM_TRP));
|
|
|
|
|
|
- LSUP_store_done(store);
|
|
|
+ for (int i = 0; i < NUM_TRP; i++) {
|
|
|
+ LSUP_buffer_done(ser_trp[i].s);
|
|
|
+ LSUP_buffer_done(ser_trp[i].p);
|
|
|
+ LSUP_buffer_done(ser_trp[i].o);
|
|
|
+ }
|
|
|
+
|
|
|
+ LSUP_store_free(store);
|
|
|
free_triples(trp);
|
|
|
|
|
|
return 0;
|