Skip to content

Commit 867b81d

Browse files
committed
JDK-8366159: SkippedException is treated as a pass for pkcs11/KeyStore, pkcs11/SecretKeyFactory and pkcs11/SecureRandom
1 parent ed4c20a commit 867b81d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public void main(Provider p) throws Exception {
127127
p11ks.load(null, PKCS11KS.passwd);
128128
printKeyStore("Initial PKCS11 KeyStore: ", p11ks);
129129
} catch (Exception e) {
130-
throw new SkippedException("Skip test, due to " + e);
130+
throw new SkippedException("Skip test, due to " + e, e);
131131
}
132132

133133
// get the necessary keys from the temp keystore

test/jdk/sun/security/pkcs11/SecureRandom/Basic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void main(Provider p) throws Exception {
4747
random = SecureRandom.getInstance("PKCS11");
4848
} catch (NoSuchAlgorithmException e) {
4949
e.printStackTrace();
50-
throw new SkippedException("Provider " + p + " does not support SecureRandom, skipping");
50+
throw new SkippedException("Provider " + p + " does not support SecureRandom, skipping", e);
5151
}
5252
byte[] b = new byte[32];
5353
random.nextBytes(b);

0 commit comments

Comments
 (0)