Fix that TNG tests were not run
[alexxy/gromacs.git] / src / programs / mdrun / tests / rerun.cpp
index d1df11f8a38d85a27e9302288b5677be96990095..0558f9a622a1d2c48b2471edfee61938a4bf748f 100644 (file)
@@ -45,6 +45,8 @@
 #include "gromacs/options/filenameoption.h"
 #include "testutils/cmdlinetest.h"
 
+#include "config.h"
+
 namespace
 {
 
@@ -75,7 +77,7 @@ TEST_P(MdrunRerun, WithDifferentInputFormats)
  * version. */
 const char *trajectoryFileNames[] = {
     "../../../gromacs/gmxana/legacytests/spc2-traj.trr",
-#ifdef GMX_USE_TNG
+#if defined GMX_USE_TNG && defined HAVE_ZLIB
     "../../../gromacs/gmxana/legacytests/spc2-traj.tng",
 #endif
     "../../../gromacs/gmxana/legacytests/spc2-traj.xtc",