From bcec3efd5f409204d4387b9ec1ff37d5d34d7673 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 30 Aug 2022 06:21:12 -0400 Subject: [PATCH] update code to latest common submodule --- fpga/tests/unit/dma.cpp | 2 +- fpga/tests/unit/fifo.cpp | 2 +- fpga/tests/unit/fpga.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fpga/tests/unit/dma.cpp b/fpga/tests/unit/dma.cpp index 448e508de..a523dbc47 100644 --- a/fpga/tests/unit/dma.cpp +++ b/fpga/tests/unit/dma.cpp @@ -88,7 +88,7 @@ Test(fpga, dma, .description = "DMA") "Destination memory not accessible for DMA"); /* Get new random data */ - const size_t lenRandom = utils::read_random(&src, len); + const size_t lenRandom = utils::readRandom(&src, len); cr_assert(len == lenRandom, "Failed to get random data"); /* Start transfer */ diff --git a/fpga/tests/unit/fifo.cpp b/fpga/tests/unit/fifo.cpp index ab1a2310b..80f62fdc4 100644 --- a/fpga/tests/unit/fifo.cpp +++ b/fpga/tests/unit/fifo.cpp @@ -61,7 +61,7 @@ Test(fpga, fifo, .description = "FIFO") /* Get some random data to compare */ memset(dst, 0, sizeof(dst)); - len = utils::read_random((char *) src, sizeof(src)); + len = utils::readRandom((char *) src, sizeof(src)); if (len != sizeof(src)) { logger->error("Failed to get random data"); continue; diff --git a/fpga/tests/unit/fpga.cpp b/fpga/tests/unit/fpga.cpp index 031e17a65..2fb2b61c0 100644 --- a/fpga/tests/unit/fpga.cpp +++ b/fpga/tests/unit/fpga.cpp @@ -52,7 +52,7 @@ static void init() spdlog::set_level(spdlog::level::debug); spdlog::set_pattern("[%T] [%l] [%n] %v"); - plugin::Registry::dumpList(); + plugin::registry->dump(); pciDevices = std::make_shared(); @@ -73,7 +73,7 @@ static void init() cr_assert(json_object_size(json) > 0, "No FPGAs defined in config"); // get the FPGA card plugin - auto fpgaCardFactory = plugin::Registry::lookup("pcie"); + auto fpgaCardFactory = plugin::registry->lookup("pcie"); cr_assert_not_null(fpgaCardFactory, "No plugin for FPGA card found"); // create all FPGA card instances using the corresponding plugin