From: Steffen Klee Date: Tue, 19 Sep 2023 22:04:18 +0000 (+0200) Subject: Fix test_cms if DSA is not supported X-Git-Tag: openssl-3.2.0-alpha2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dee2129802d9694d72e8745aec2d8bd4577ee4ee;p=thirdparty%2Fopenssl.git Fix test_cms if DSA is not supported CLA: trivial Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/22150) --- diff --git a/test/recipes/80-test_cms.t b/test/recipes/80-test_cms.t index 21c683c4046..38579161057 100644 --- a/test/recipes/80-test_cms.t +++ b/test/recipes/80-test_cms.t @@ -1144,9 +1144,13 @@ with({ exit_checker => sub { return shift == 6; } }, # Test case for return value mis-check reported in #21986 with({ exit_checker => sub { return shift == 3; } }, sub { - ok(run(app(['openssl', 'cms', '-sign', - '-in', srctop_file("test", "smcont.txt"), - '-signer', srctop_file("test/smime-certs", "smdsa1.pem"), - '-md', 'SHAKE256'])), - "issue#21986"); + SKIP: { + skip "DSA is not supported in this build", 1 if $no_dsa; + + ok(run(app(['openssl', 'cms', '-sign', + '-in', srctop_file("test", "smcont.txt"), + '-signer', srctop_file("test/smime-certs", "smdsa1.pem"), + '-md', 'SHAKE256'])), + "issue#21986"); + } });