Skip to content

Commit

Permalink
skip mpi tests if mpirun isn't used, or has too few processes
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 committed Apr 26, 2023
1 parent 10b24fc commit 38a7ceb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/core/nexus/NexusRemoteTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ void Nexus_Remote_Test::TearDown()
//to a downstream remote nexus.
TEST_F(Nexus_Remote_Test, TestInit0)
{
if ( mpi_num_procs < 2 ) {
GTEST_SKIP();
}

HY_PointHydroNexusRemote::catcment_location_map_t loc_map;

std::shared_ptr<HY_PointHydroNexusRemote> nexus;
Expand Down Expand Up @@ -409,6 +413,10 @@ TEST_F(Nexus_Remote_Test, Test4R2S2LS)

TEST_F(Nexus_Remote_Test, TestDeadlock1)
{
if ( mpi_num_procs < 2 ) {
GTEST_SKIP();
}

HY_PointHydroNexusRemote::catcment_location_map_t loc_map;

std::shared_ptr<HY_PointHydroNexusRemote> nexus1;
Expand Down

0 comments on commit 38a7ceb

Please sign in to comment.