summaryrefslogtreecommitdiffstats
path: root/test/recipes/80-test_cms.t
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2022-11-14 10:31:23 +1100
committerTomas Mraz <tomas@openssl.org>2022-12-08 11:11:11 +0100
commit61203c2c59df5d0022e316a4fe614e5d18907715 (patch)
tree30bac8aa749f5b801cc98242d7d7f31ba0b1b20e /test/recipes/80-test_cms.t
parent4d0340a6d2f327700a059f0b8f954d6160f8eef5 (diff)
test: add test case for deadlock reported in #19643
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19652)
Diffstat (limited to 'test/recipes/80-test_cms.t')
-rw-r--r--test/recipes/80-test_cms.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/recipes/80-test_cms.t b/test/recipes/80-test_cms.t
index 28d96b8eda..5d755c989d 100644
--- a/test/recipes/80-test_cms.t
+++ b/test/recipes/80-test_cms.t
@@ -50,7 +50,7 @@ my ($no_des, $no_dh, $no_dsa, $no_ec, $no_ec2m, $no_rc2, $no_zlib)
$no_rc2 = 1 if disabled("legacy");
-plan tests => 15;
+plan tests => 16;
ok(run(test(["pkcs7_test"])), "test pkcs7");
@@ -1081,3 +1081,14 @@ sub check_availability {
return "";
}
+
+# Test case for the locking problem reported in #19643.
+# This will fail if the fix is in and deadlock on Windows (and possibly
+# other platforms) if not.
+ok(!run(app(['openssl', 'cms', '-verify',
+ '-CAfile', srctop_file("test/certs", "pkitsta.pem"),
+ '-policy', 'anyPolicy',
+ '-in', srctop_file("test/smime-eml",
+ "SignedInvalidMappingFromanyPolicyTest7.eml")
+ ])),
+ "issue#19643");