File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
test/jdk/sun/security/pkcs11/ec Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 2121 * questions.
2222 */
2323
24+ /*
25+ * ===========================================================================
26+ * (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved
27+ * ===========================================================================
28+ */
29+
2430/*
2531 * @test
2632 * @bug 6405536 6414980 8051972
4147import java .security .NoSuchAlgorithmException ;
4248import java .security .NoSuchProviderException ;
4349import java .security .Provider ;
50+ import java .security .ProviderException ;
4451import java .security .PublicKey ;
4552import java .security .SecureRandom ;
4653import java .security .SignatureException ;
@@ -182,6 +189,15 @@ public void main(Provider p) throws Exception {
182189 }
183190 } catch (SignatureException | InvalidKeyException e ) {
184191 System .out .println ("OK: " + e );
192+ } catch (ProviderException pe ) {
193+ if (pe .getMessage ().contains ("cancel failed" )
194+ && "s390x" .equals (System .getProperty ("os.arch" ))
195+ ) {
196+ System .out .println ("NSS error code is different on s390x." );
197+ pe .printStackTrace ();
198+ } else {
199+ throw pe ;
200+ }
185201 }
186202 }
187203
You can’t perform that action at this time.
0 commit comments