From 6f444788d70a1a5005ace62af4b1ac593d3e065f Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Tue, 27 Sep 2022 13:50:31 -0700 Subject: [PATCH] #1983: location: update tests without serialize --- tests/unit/location/test_location_common.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/unit/location/test_location_common.h b/tests/unit/location/test_location_common.h index d4acc5cdc1..8a7438f6ce 100644 --- a/tests/unit/location/test_location_common.h +++ b/tests/unit/location/test_location_common.h @@ -97,9 +97,7 @@ struct LongMsg : vt::LocationRoutedMsg { struct SerialMsg : ShortMsg { SerialMsg(int in_entity, vt::NodeType in_from) : ShortMsg(in_entity, in_from) - { - setSerialize(true); - } + { } }; template @@ -148,15 +146,13 @@ void verifyCacheConsistency( for (int iter = 0; iter < nb_rounds; ++iter) { // create an entity message to route auto msg = vt::makeMessage(entity, my_node); - // check if should be serialized or not - bool serialize = msg->getSerialize(); // perform the checks only after all entity messages have been // correctly delivered runInEpochCollective([&]{ if (my_node not_eq home) { // route entity message - vt::theLocMan()->virtual_loc->routeMsg(entity, home, msg, serialize); + vt::theLocMan()->virtual_loc->routeMsg(entity, home, msg); } }); @@ -170,8 +166,8 @@ void verifyCacheConsistency( vt_debug_print( normal, location, "verifyCacheConsistency: iter={}, entityID={}, home={}, bytes={}, " - "in cache={}, serialize={}\n", - iter, entity, msg->from_, sizeof(*msg), is_entity_cached, serialize + "in cache={}\n", + iter, entity, msg->from_, sizeof(*msg), is_entity_cached ); if (not is_eager) {