RFR: JDK-8278344: sun/security/pkcs12/KeytoolOpensslInteropTest.java test fails because of different openssl output

Weijun Wang weijun at openjdk.java.net
Mon Dec 13 14:25:14 UTC 2021


On Thu, 9 Dec 2021 08:25:17 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Please review this small test fix.
> KeytoolOpensslInteropTest.java fails with the output below.
> Seems on our SUSE Linux 15 (openssl is
> ~> openssl version
> OpenSSL 1.1.0i-fips 14 Aug 2018
> ) we get a slightly different output with a blank missing after "MAC:" :
> 
> :stdErr:
> Mon Dec 06 21:54:48 CET 2021
> stdout: [];
> stderr: [MAC:sha256 Iteration 10000
>  . . .
> java.lang.RuntimeException: 'MAC: sha256, Iteration 10000' missing from stdout/stderr
> 
> So it is necessary to adjust the test to the other openssl version.

Sorry about the late comment, but the updated code would allow those 3 strings appearing on different lines. Maybe a `shouldMatch` can be more precise.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6779



More information about the security-dev mailing list