tests: added reproducer for encoding issue

Signed-off-by: Nikos Mavrogiannopoulos's avatarNikos Mavrogiannopoulos <nmav@redhat.com>
parent e43badf7
Pipeline #8385087 passed with stage
in 6 minutes and 4 seconds
......@@ -46,7 +46,8 @@ EXTRA_DIST = Test_parser.asn Test_tree.asn Test_tree_asn1_tab.c mscat.asn \
invalid-x509/id-000032.der invalid-x509/id-000033.der \
invalid-x509/id-000034.der invalid-x509/id-000035.der \
invalid-pkcs7/id-000001.der invalid-pkcs7/id-000002.der \
invalid-pkcs7/id-000003.der invalid-assignments1.txt
invalid-pkcs7/id-000003.der invalid-assignments1.txt \
invalid-assignments2.txt
# For crlf.
EXTRA_DIST += crlf.cer crl.der ocsp.der
......
......@@ -45,7 +45,13 @@ EOF
$VALGRIND $ASN1CODING -c $TMPFILE ${srcdir}/invalid-assignments1.txt
if test $? != 1;then
echo "Encoding failed"
echo "Encoding failed (1)"
exit 1
fi
$VALGRIND $ASN1CODING -c $TMPFILE ${srcdir}/invalid-assignments2.txt
if test $? != 1;then
echo "Encoding failed (2)"
exit 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment