From 12811b48908ee1f43812c1e549ebfe2264f59f70 Mon Sep 17 00:00:00 2001 From: Felix Moessbauer Date: Wed, 21 Dec 2016 14:15:29 +0100 Subject: [PATCH] run teamsplit test only if all units share the same node --- dash/test/TeamTest.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dash/test/TeamTest.cc b/dash/test/TeamTest.cc index 0e4423e03..74f60c014 100644 --- a/dash/test/TeamTest.cc +++ b/dash/test/TeamTest.cc @@ -39,6 +39,12 @@ TEST_F(TeamTest, SplitTeamSync) SKIP_TEST_MSG("team is already splitted. Skip test"); } + // Check if all units are on the same node + dash::util::TeamLocality tloc(dash::Team::All()); + if(tloc.num_nodes() > 1){ + SKIP_TEST_MSG("test supports only 1 node"); + } + LOG_MESSAGE("team_all contains %d units", team_all.size()); auto & team_core = team_all.split(2);