Skip to content

Commit

Permalink
#1983: location: update tests without serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Sep 28, 2022
1 parent bb7251c commit 6f44478
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/unit/location/test_location_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ struct LongMsg : vt::LocationRoutedMsg<int, vt::Message> {
struct SerialMsg : ShortMsg {
SerialMsg(int in_entity, vt::NodeType in_from)
: ShortMsg(in_entity, in_from)
{
setSerialize(true);
}
{ }
};

template <typename MsgT>
Expand Down Expand Up @@ -148,15 +146,13 @@ void verifyCacheConsistency(
for (int iter = 0; iter < nb_rounds; ++iter) {
// create an entity message to route
auto msg = vt::makeMessage<MsgT>(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<MsgT>(entity, home, msg, serialize);
vt::theLocMan()->virtual_loc->routeMsg<MsgT>(entity, home, msg);
}
});

Expand All @@ -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) {
Expand Down

0 comments on commit 6f44478

Please sign in to comment.