Subject: | Crypt::SMIME 0.24 |
Date: | Thu, 22 Feb 2018 09:20:40 +0400 |
To: | bug-Crypt-SMIME [...] rt.cpan.org |
From: | "Thomas Eckardt" <thomas.eckardt [...] thockar.com> |
Subject: | Crypt::SMIME 0.24 |
Hello,
depending on the used openssl lib the test
t/03-chained-certs.t
may fail, because the test regex is is case sensitive.
test output:
.....
t/03-chained-certs.t .. # Using
`C:/perl/c/lib/pkgconfig/../../bin/openssl.exe' to generate a keypair
t/03-chained-certs.t .. 1/15
# Failed test 'check must fail with exception'
# at t/03-chained-certs.t line 221.
# expecting: Regexp ((?^:CMS_SIGNERINFO_VERIFY_CERT))
# found: Crypt::SMIME#check: failed to check the signature:
error:2E099064:CMS routines:cms_signerinfo_verify_cert:certificate verify
error at t/03-chained-certs.t line 221.
# Looks like you failed 1 test of 15.
t/03-chained-certs.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/15 subtests
.....
line 221 of the test file should be changed from
throws_ok { $checked = $SMIME->check($signed) } qr/$pattern/,
'check must fail with exception';
to
throws_ok { $checked = $SMIME->check($signed) } qr/$pattern/i,
'check must fail with exception';
best regards
Thomas Eckardt
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
Message body not shown because it is not plain text.