Skip to content

Commit 41c6116

Browse files
committed
8279941: sun/security/pkcs11/Signature/TestDSAKeyLength.java fails when NSS version detection fails
Backport-of: cddd6def9f796a25137e0059e82053142747c001
1 parent 51cde1a commit 41c6116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/sun/security/pkcs11/Signature/TestDSAKeyLength.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -48,7 +48,7 @@ public static void main(String[] args) throws Exception {
4848

4949
@Override
5050
protected boolean skipTest(Provider provider) {
51-
if (isNSS(provider) && getNSSVersion() >= 3.14) {
51+
if (isNSS(provider) && (getNSSVersion() == 0.0 || getNSSVersion() >= 3.14)) {
5252
System.out.println("Skip testing NSS " + getNSSVersion());
5353
return true;
5454
}

0 commit comments

Comments
 (0)