summaryrefslogtreecommitdiff
path: root/tests/cert-tests/openpgp-cert-parser
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cert-tests/openpgp-cert-parser')
-rwxr-xr-xtests/cert-tests/openpgp-cert-parser4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cert-tests/openpgp-cert-parser b/tests/cert-tests/openpgp-cert-parser
index 9545fa0c6c..c12e1be8d6 100755
--- a/tests/cert-tests/openpgp-cert-parser
+++ b/tests/cert-tests/openpgp-cert-parser
@@ -38,4 +38,8 @@ echo "Checking OpenPGP certificate parsing"
| grep "^import error: Error in parsing" > /dev/null) || \
fail "Parsing should have errored"
+("${CERTTOOL}" --inraw --pgp-certificate-info --infile "${srcdir}/data/attribute-leak-1.pub" 2>&1 \
+ | grep "^import error:" > /dev/null) || \
+ fail "Parsing should have errored"
+
exit ${RETCODE:-0}