Unverified Commit 8eb77913 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

avoid googletest stalling on exit tests when using OpenMPI

parent 207232c1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -168,8 +168,10 @@ TEST_F(SimpleCommandsTest, Quit)
    auto mesg = ::testing::internal::GetCapturedStdout();
    ASSERT_THAT(mesg, MatchesRegex(".*ERROR: Expected integer .*"));

#if !defined(OMPI_MAJOR_VERSION) // this stalls with OpenMPI. skip.
    ASSERT_EXIT(lmp->input->one("quit"), ExitedWithCode(0), "");
    ASSERT_EXIT(lmp->input->one("quit 9"), ExitedWithCode(9), "");
#endif
}

TEST_F(SimpleCommandsTest, ResetTimestep)