From 61203c2c59df5d0022e316a4fe614e5d18907715 Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 14 Nov 2022 10:31:23 +1100 Subject: test: add test case for deadlock reported in #19643 Reviewed-by: Dmitry Belyavskiy Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19652) --- test/recipes/80-test_cms.t | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test/recipes/80-test_cms.t') 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"); -- cgit v1.2.3