]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: Skip multi-ticket-reception test when valgrind is not available.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Sat, 21 Dec 2024 12:47:56 +0000 (21:47 +0900)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Sun, 22 Dec 2024 01:12:09 +0000 (10:12 +0900)
This test would hang when attempting to run without valgrind
available.

* tests/suite/multi-ticket-reception.sh: Skip when VALGRIND is not set.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
tests/suite/multi-ticket-reception.sh

index 1828a3a8d79c3b41bc222bf4c2fd0662dd442c86..80baf5c3848dc06ba83f10b8c20d591fb80450ac 100755 (executable)
@@ -41,8 +41,10 @@ if test "${WINDIR}" != ""; then
        exit 77
 fi
 
-if ! test -z "${VALGRIND}"; then
+if test -n "${VALGRIND}"; then
        VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND} --error-exitcode=15"
+else
+       exit 77
 fi
 
 . "${srcdir}/../scripts/common.sh"