test: tmpd: Populate path members under struct mbox_context

Change-Id: I9d18bd108d1c0972a5fefa384152757a2483c103
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/test/vpnor/write_flash_vpnor.cpp b/test/vpnor/write_flash_vpnor.cpp
index 384c13a..c53e8da 100644
--- a/test/vpnor/write_flash_vpnor.cpp
+++ b/test/vpnor/write_flash_vpnor.cpp
@@ -80,11 +80,6 @@
     ctx->block_size_shift = BLOCK_SIZE_SHIFT;
     ctx->flash_bmap = reinterpret_cast<uint8_t*>(
         calloc(MEM_SIZE >> ctx->erase_size_shift, sizeof(*ctx->flash_bmap)));
-
-    strcpy(ctx->paths.ro_loc, root.ro().c_str());
-    strcpy(ctx->paths.rw_loc, root.rw().c_str());
-    strcpy(ctx->paths.prsv_loc, root.prsv().c_str());
-    strcpy(ctx->paths.patch_loc, root.patch().c_str());
 }
 
 int main(void)
@@ -97,7 +92,7 @@
     struct mbox_context* ctx = &context;
     memset(ctx, 0, sizeof(mbox_context));
 
-    test::VpnorRoot root(toc, BLOCK_SIZE);
+    test::VpnorRoot root(ctx, toc, BLOCK_SIZE);
 
     // Initialize the context before running the test case.
     init(ctx, root);