$no_rc2 = 1 if disabled("legacy");
-plan tests => 20;
+plan tests => 21;
ok(run(test(["pkcs7_test"])), "test pkcs7");
])),
"Check failure during BIO setup with -stream is handled correctly");
});
+
+# 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");
+ });