summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-12-21 06:36:38 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-12-21 06:36:38 +0000
commite32ca94cf285eb4ded3dae29e6fca637ed2ad48e (patch)
tree2d57d79d43393ec01454e7f46e891ee680f37358 /tests
parent5d03564cccd2c10c41252ea468d4a098bd08e9c1 (diff)
parent61072183aa43f4d2e193cdca51086e69eed043cc (diff)
downloadgnutls-e32ca94cf285eb4ded3dae29e6fca637ed2ad48e.tar.gz
Merge branch 'tmp-testrandom.sh' into 'master'
testrandom.sh: Fix endless loop Closes #656 See merge request gnutls/gnutls!842
Diffstat (limited to 'tests')
-rwxr-xr-xtests/suite/testrandom.sh6
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