Commit c0080eff authored by Nicholas Breen's avatar Nicholas Breen

Disable EXPECT_DEATH tests if unavailable

parent e86c6ae8
gromacs (2018~rc1-3) UNRELEASED; urgency=medium
* patches/gtest-death-test.patch: disable EXPECT_DEATH tests if
unavailable on that platform.
-- Nicholas Breen <nbreen@debian.org> Wed, 03 Jan 2018 20:58:25 -0800
gromacs (2018~rc1-2) experimental; urgency=medium
* Apply upstream patch <https://gerrit.gromacs.org/#/c/7395/> to address
......
Index: gromacs/src/gromacs/gpu_utils/tests/hostallocator.cpp
===================================================================
--- gromacs.orig/src/gromacs/gpu_utils/tests/hostallocator.cpp
+++ gromacs/src/gromacs/gpu_utils/tests/hostallocator.cpp
@@ -298,12 +298,14 @@ TYPED_TEST(HostAllocatorTest, ManualPinn
#else
+#ifdef GTEST_HAS_DEATH_TEST
TYPED_TEST(HostAllocatorTest, ChangingPinningPolicyRequiresCuda)
{
typename TestFixture::VectorType input;
EXPECT_DEATH(changePinningPolicy(&input, PinningPolicy::CanBePinned),
".*A suitable build of GROMACS.* is required.*");
}
+#endif // GTEST_HAS_DEATH_TEST
TYPED_TEST(HostAllocatorTest, ManualPinningOperationsWorkEvenWithoutCuda)
{
......@@ -4,3 +4,4 @@ reproducible-builds.patch
doxygen.patch
disable-cpuinfotest.patch
hurd-disable-numa-test.patch
gtest-death-test.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment