RFR: 8279941: sun/security/pkcs11/Signature/TestDSAKeyLength.java fails when NSS version detection fails

Aleksey Shipilev shade at openjdk.org
Mon Sep 19 17:09:27 UTC 2022


The test helpers try to identify NSS version by parsing the relevant `.so` files (!) looking for "Version: ..." string. This fails at least on Ubuntu 22.04, where the NSS does not have any version-identifiable strings. In this case, the test "detects" version as `0.0` and then fails. After brief discussion in the bug, the best fix is to ignore `0.0` as well.

Additional testing: 
 - [x] Linux x86_64 fastdebug, affected test now skipped on Ubuntu 22.04

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

Commit messages:
 - Fix

Changes: https://git.openjdk.org/jdk/pull/10346/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10346&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8279941
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/10346.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10346/head:pull/10346

PR: https://git.openjdk.org/jdk/pull/10346


More information about the security-dev mailing list