diff options
Diffstat (limited to 'tests/cert-tests/provable-privkey-dsa2048')
-rwxr-xr-x | tests/cert-tests/provable-privkey-dsa2048 | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/cert-tests/provable-privkey-dsa2048 b/tests/cert-tests/provable-privkey-dsa2048 index 160998ff07..fa65f091a4 100755 --- a/tests/cert-tests/provable-privkey-dsa2048 +++ b/tests/cert-tests/provable-privkey-dsa2048 @@ -37,19 +37,20 @@ if test "${rc}" != "0"; then exit 1 fi -${VALGRIND} "${CERTTOOL}" --verify-provable-privkey --load-privkey "$OUTFILE" -rc=$? +${VALGRIND} "${CERTTOOL}" --verify-provable-privkey --load-privkey "$OUTFILE" & +PID1=$! -if test "${rc}" != "0"; then - echo "Could not verify the generated key 1" - exit 1 -fi +${VALGRIND} "${CERTTOOL}" --verify-provable-privkey --load-privkey "$OUTFILE" --seed "$SEED" & +PID2=$! -${VALGRIND} "${CERTTOOL}" --verify-provable-privkey --load-privkey "$OUTFILE" --seed "$SEED" -rc=$? +wait $PID1 +rc1=$? -if test "${rc}" != "0"; then - echo "Could not verify the generated key 2" +wait $PID2 +rc2=$? + +if test "${rc1}" != "0" || test "${rc2}" != "0"; then + echo "Could not verify the generated parameters" exit 1 fi |