avoid googletest stalling on exit tests when using OpenMPI

This commit is contained in:
Axel Kohlmeyer 2020-07-08 16:31:36 -04:00
parent 207232c1a3
commit 8eb7791342
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 0 deletions

View File

@ -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)