Fix parallel testing
[alexxy/gromacs.git] / src / gromacs / utility / tests / enumerationhelpers.cpp
index 3e6c504355e86181638dddaf9f7985f07f01762c..9d27cc96ac576972f4c90dba2c293503ae9d22d4 100644 (file)
 
 #include "gromacs/utility/enumerationhelpers.h"
 
+#include "config.h"
+
 #include <iostream>
 
 #include <gtest/gtest.h>
 
 #include "gromacs/utility/arrayref.h"
 
+#include "testutils/testasserts.h"
+
 namespace gmx
 {
 namespace
@@ -146,7 +150,7 @@ TEST(EnumerationHelpersTest, EnumerationArrayCountIsSafe)
 #ifndef NDEBUG
     // Tests (where possible) that those assertions do fire in a build
     // with debug behavior.
-    EXPECT_DEATH_IF_SUPPORTED(fooStrings[Foo::Count], "index out of range");
+    GMX_EXPECT_DEATH_IF_SUPPORTED(fooStrings[Foo::Count], "index out of range");
 #endif
 }