don't output debug messages in testsuite if valgrind on

This commit is contained in:
toddouska 2013-01-04 15:52:46 -08:00
parent f756573401
commit f3a0d311a0
2 changed files with 2 additions and 1 deletions

View File

@ -648,6 +648,7 @@ then
AC_MSG_ERROR([Valgrind not found.])
fi
enable_shared=no
AM_CFLAGS="$AM_CFLAGS -DHAVE_VALGRIND"
fi
AM_CONDITIONAL([USE_VALGRIND], [test "x$ENABLED_VALGRIND" = "xyes"])

View File

@ -66,7 +66,7 @@ int main(int argc, char** argv)
args.argv = server_args.argv = argv;
CyaSSL_Init();
#ifdef DEBUG_CYASSL
#if defined(DEBUG_CYASSL) && !defined(HAVE_VALGRIND)
CyaSSL_Debugging_ON();
#endif