Skip to content

Commit

Permalink
8279941: sun/security/pkcs11/Signature/TestDSAKeyLength.java fails wh…
Browse files Browse the repository at this point in the history
…en NSS version detection fails

Backport-of: cddd6def9f796a25137e0059e82053142747c001
  • Loading branch information
GoeLin committed Feb 28, 2023
1 parent 558eab2 commit d21d985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/sun/security/pkcs11/Signature/TestDSAKeyLength.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -48,7 +48,7 @@ public static void main(String[] args) throws Exception {

@Override
protected boolean skipTest(Provider provider) {
if (isNSS(provider) && getNSSVersion() >= 3.14) {
if (isNSS(provider) && (getNSSVersion() == 0.0 || getNSSVersion() >= 3.14)) {
System.out.println("Skip testing NSS " + getNSSVersion());
return true;
}
Expand Down

0 comments on commit d21d985

Please sign in to comment.