summaryrefslogtreecommitdiff
path: root/tests/suite/testrandom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/testrandom.sh')
-rwxr-xr-xtests/suite/testrandom.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/suite/testrandom.sh b/tests/suite/testrandom.sh
index 79b90d32c0..75e4a40786 100755
--- a/tests/suite/testrandom.sh
+++ b/tests/suite/testrandom.sh
@@ -58,7 +58,7 @@ while [ ${counter} -lt 200 ]; do
"${srcdir}/x509random.pl" > "${file}"
${VALGRIND} "${CERTTOOL}" -i --inder --infile "${file}" >/dev/null
ret=$?
- if [ ${ret} != 0 -a ${ret} != 1 ]; then
+ if test ${ret} != 0 && test ${ret} != 1; then
echo "Unknown exit code with ${file}"
exit 1
fi
@@ -73,7 +73,7 @@ while [ ${counter} -lt 200 ]; do
"${srcdir}/asn1random.pl" > "${file}"
${VALGRIND} "${CERTTOOL}" -i --inder --infile "${file}" >/dev/null 2>/dev/null
ret=$?
- if [ ${ret} != 0 -a ${ret} != 1 ]; then
+ if test ${ret} != 0 && test ${ret} != 1; then
echo "Unknown exit code with ${file}"
exit 1
fi