diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-12-20 16:33:34 +0100 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-12-20 16:35:31 +0100 |
commit | 61072183aa43f4d2e193cdca51086e69eed043cc (patch) | |
tree | 9f5ef60977cd540ade6da0ff5ad9be4facfe224c | |
parent | 435437ad94723612deb1e238379d457b2456d83f (diff) | |
download | gnutls-61072183aa43f4d2e193cdca51086e69eed043cc.tar.gz |
testrandom.sh: Fix endless looptmp-testrandom.sh
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
-rwxr-xr-x | tests/suite/testrandom.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/suite/testrandom.sh b/tests/suite/testrandom.sh index 7e68a713a6..1283e9e765 100755 --- a/tests/suite/testrandom.sh +++ b/tests/suite/testrandom.sh @@ -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 |