summaryrefslogtreecommitdiff
path: root/tests/cert-tests/certtool
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cert-tests/certtool')
-rwxr-xr-xtests/cert-tests/certtool4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cert-tests/certtool b/tests/cert-tests/certtool
index 4b194ac9ca..11b8b8f636 100755
--- a/tests/cert-tests/certtool
+++ b/tests/cert-tests/certtool
@@ -39,8 +39,8 @@ if ! test -z "${VALGRIND}"; then
VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND}"
fi
-SETSID=$(which setsid)
-if test -n "${SETSID}";then
+: ${SETSID=setsid}
+if ("$SETSID" --version) >/dev/null 2>&1; then
${VALGRIND} "${CERTTOOL}" --generate-privkey --rsa --outfile ${TMPFILE1} --pkcs8 --password ${PASS}
if test $? != 0;then
echo "private key generation failed"