From 42878b939eab87978e5af45cde2b8fe432231428 Mon Sep 17 00:00:00 2001 From: Aleksei Iupinov Date: Thu, 18 Jan 2018 12:13:00 +0100 Subject: [PATCH] Add a death test for the duplicate inputrec keys checking That was fixed in Idc66145af. Refs #2386 Change-Id: I4c726989da646ffa5343f4bcdea51dfdf049ef6c --- src/gromacs/gmxpreprocess/tests/readir.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gromacs/gmxpreprocess/tests/readir.cpp b/src/gromacs/gmxpreprocess/tests/readir.cpp index a84de885ae..6fd6f7d274 100644 --- a/src/gromacs/gmxpreprocess/tests/readir.cpp +++ b/src/gromacs/gmxpreprocess/tests/readir.cpp @@ -183,5 +183,11 @@ TEST_F(GetIrTest, ProducesOutputFromElectricFieldOscillating) runTest(inputMdpFile); } +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"); +} + } // namespace } // namespace -- 2.11.4.GIT