]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
testrandom.sh: Fix endless loop
authorTim Rühsen <tim.ruehsen@gmx.de>
Thu, 20 Dec 2018 15:33:34 +0000 (16:33 +0100)
committerTim Rühsen <tim.ruehsen@gmx.de>
Thu, 20 Dec 2018 15:35:31 +0000 (16:35 +0100)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
tests/suite/testrandom.sh

index 7e68a713a6bfde4bb9af7b58b17abb42047a1f50..1283e9e765c59cd9a7c7e9af180efa595acd65cc 100755 (executable)
@@ -38,8 +38,10 @@ counter=0
 
 echo "Testing verification with randomly generated certificates..."
 while [ ${counter} -lt 400 ]; do
+       counter=`expr ${counter} + 1`
+
        "${srcdir}/x509random.pl" > "${file}"
-       ${VALGRIND} "${CERTTOOL}" -i --inder --infile "${file}" --outfile "${file}.pem" >/dev/null 2>&1
+       ${VALGRIND} "${CERTTOOL}" -i --inder --infile "${file}" --outfile "${file}.pem" >/dev/null
        if test $? != 0; then
                continue
        fi
@@ -53,8 +55,6 @@ while [ ${counter} -lt 400 ]; do
                exit 1
        fi
        rm -f "${file}.pem" "${file}-chain.pem"
-
-       counter=`expr ${counter} + 1`
 done