summaryrefslogtreecommitdiffstats
path: root/test/vpnor/create_read_window_toc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpnor/create_read_window_toc.cpp')
-rw-r--r--test/vpnor/create_read_window_toc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/vpnor/create_read_window_toc.cpp b/test/vpnor/create_read_window_toc.cpp
index 00b9dfe..1f68371 100644
--- a/test/vpnor/create_read_window_toc.cpp
+++ b/test/vpnor/create_read_window_toc.cpp
@@ -55,12 +55,12 @@ int main()
ctx = mbox_create_test_context(N_WINDOWS, WINDOW_SIZE);
test::VpnorRoot root(ctx, toc, BLOCK_SIZE);
- vpnor::partition::Table table(root.ro(), BLOCK_SIZE, PNOR_SIZE);
+ vpnor::partition::Table table(ctx);
/* Make sure the ToC exactly fits in the space allocated for it */
assert(table.capacity() == TOC_PART_SIZE);
- vpnor_create_partition_table_from_path(ctx, root.ro().c_str());
+ init_vpnor_from_paths(ctx);
rc = mbox_command_dispatch(ctx, get_info, sizeof(get_info));
assert(rc == 1);
OpenPOWER on IntegriCloud