copy = gnutls_hash_copy(hd);
/* Returning NULL is not an error here for the time being, but
* it might become one later */
-#if 0
- if (!copy)
+ if (!copy && secure_getenv("GNUTLS_TEST_SUITE_RUN"))
return gnutls_assert_val(GNUTLS_E_SELF_TEST_ERROR);
-#endif
ret = gnutls_hash(hd,
&vectors[i].plaintext[1],
copy = gnutls_hmac_copy(hd);
/* Returning NULL is not an error here for the time being, but
* it might become one later */
-#if 0
- if (!copy)
+ if (!copy && secure_getenv("GNUTLS_TEST_SUITE_RUN"))
return gnutls_assert_val(GNUTLS_E_SELF_TEST_ERROR);
-#endif
ret = gnutls_hmac(hd,
&vectors[i].plaintext[1],
PSK_FILE=$(srcdir)/psk.passwd \
OPENSSL_ia32cap=0x00000000 \
EXEEXT=$(EXEEXT) \
+ GNUTLS_TEST_SUITE_RUN=1 \
builddir="$(builddir)" \
top_builddir="$(top_builddir)" \
libdir="$(libdir)" \
top_builddir="$(top_builddir)" \
ac_cv_sizeof_time_t="$(ac_cv_sizeof_time_t)" \
ASAN_OPTIONS="detect_leaks=0:exitcode=6" \
+ GNUTLS_TEST_SUITE_RUN=1 \
srcdir="$(srcdir)"
if ENABLE_FIPS140
TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) \
LC_ALL="C" \
LSAN_OPTIONS=suppressions=gnutls-asan.supp \
+ GNUTLS_TEST_SUITE_RUN=1 \
OPENSSL_ia32cap=0x00000000 \
top_builddir="$(top_builddir)" \
srcdir="$(srcdir)"
fi
PROG=./cipher-override${EXEEXT}
+# we are explicitly unsetting this variable, because we want
+# the "production" checks to be triggered, not the ones in the
+# test suite.
+
+unset GNUTLS_TEST_SUITE_RUN
GNUTLS_NO_EXPLICIT_INIT=1 ${VALGRIND} ${PROG}
ret=$?
if test $ret != 0; then
top_builddir="$(top_builddir)" \
srcdir="$(srcdir)" \
ASAN_OPTIONS="detect_leaks=0" \
+ GNUTLS_TEST_SUITE_RUN=1 \
OPENSSL_ia32cap=0x00000000
if ENABLE_NON_SUITEB_CURVES
TESTS_ENVIRONMENT = \
WINEDLLOVERRIDES="crypt32=n,ncrypt=n" \
LC_ALL="C" \
+ GNUTLS_TEST_SUITE_RUN=1 \
EXEEXT=$(EXEEXT) \
top_builddir="$(top_builddir)" \
srcdir="$(srcdir)"