Replace the remaining EXPECT_DEATH with EXPECT_DEATH_IF_SUPPORTED
authorAleksei Iupinov <a.yupinov@gmail.com>
Wed, 14 Feb 2018 11:20:06 +0000 (12:20 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 14 Feb 2018 12:04:54 +0000 (13:04 +0100)
Change-Id: Ibce3d4f240bf3552893762b74206d8e54575d18d

src/gromacs/gmxpreprocess/tests/readir.cpp

index 6500dd0beb4020a86d019c62616b9493da7a4556..4b72470dec36f67b769cde621b5124d91d018a37 100644 (file)
@@ -186,7 +186,7 @@ TEST_F(GetIrTest, ProducesOutputFromElectricFieldOscillating)
 TEST_F(GetIrTest, TerminatesOnDuplicateOldAndNewKeys)
 {
     const char *inputMdpFile[] = {"verlet-buffer-drift = 1.3", "verlet-buffer-tolerance = 2.7"};
-    EXPECT_DEATH(runTest(joinStrings(inputMdpFile, "\n")), "A parameter is present with both");
+    EXPECT_DEATH_IF_SUPPORTED(runTest(joinStrings(inputMdpFile, "\n")), "A parameter is present with both");
 }
 
 TEST_F(GetIrTest, ImplicitSolventNoWorks)
@@ -198,7 +198,7 @@ TEST_F(GetIrTest, ImplicitSolventNoWorks)
 TEST_F(GetIrTest, ImplicitSolventYesWorks)
 {
     const char *inputMdpFile = "implicit-solvent = yes";
-    EXPECT_DEATH(runTest(inputMdpFile), "Invalid enum");
+    EXPECT_DEATH_IF_SUPPORTED(runTest(inputMdpFile), "Invalid enum");
 }
 
 } // namespace