From 67094f6c9ef002ff627f4db6c9477b901a093745 Mon Sep 17 00:00:00 2001 From: Florian Fischer <florian.fl.fischer@fau.de> Date: Fri, 27 Nov 2020 10:58:59 +0100 Subject: [PATCH] use DIE* macros instead of the die function --- tests/SimpleUrcuTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/SimpleUrcuTest.cpp b/tests/SimpleUrcuTest.cpp index dfd9f813..75c552b9 100644 --- a/tests/SimpleUrcuTest.cpp +++ b/tests/SimpleUrcuTest.cpp @@ -9,7 +9,7 @@ #include <iostream> // for hash #include <vector> // for vector -#include "Common.hpp" // for die +#include "Common.hpp" // for DIE #include "CountingPrivateSemaphore.hpp" // for CPS #include "Fiber.hpp" // for Fiber #include "Runtime.hpp" // for Runtime @@ -32,7 +32,7 @@ auto main() -> int { // Allocate new hash table. ht = cds_lfht_new(1, 1, 0, CDS_LFHT_AUTO_RESIZE | CDS_LFHT_ACCOUNTING, nullptr); if (!ht) { - die("Error allocating hash table", false); + DIE_MSG("Error allocating hash table"); } Fiber* verifier = Fiber::from([&]() { @@ -43,7 +43,7 @@ auto main() -> int { [&ht, value] { auto* node = reinterpret_cast<node_t*>(malloc(sizeof(node_t))); if (!node) { - die("allocating node failed", true); + DIE_MSG_ERRNO("allocating node failed"); } cds_lfht_node_init(&node->node); -- GitLab