test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java test failure on Ubuntu 23.04

Vladimir Petko vladimir.petko at canonical.com
Thu May 25 23:47:44 UTC 2023


Hi,

JDK21+24 fails test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java[1]
 with CKR_GENERAL_ERROR (see test-fail.txt).
Reordering certificate addition
(0001-CertChainRemoval-reorder-certificates.patch) allows the test to
pass (pass.txt), but it may indicate a more serious underlying
problem.

Best Regards,
 Vladimir.

[1] https://github.com/openjdk/jdk/commit/6b27dad76e20131503da15119d930df17dd517d9
-------------- next part --------------
make TEST="test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java" test
Building target 'test' in configuration 'linux-x86_64-server-release'
Test selection 'test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java', will run:
* jtreg:test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java

Running test 'jtreg:test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java'
--------------------------------------------------
TEST: sun/security/pkcs11/KeyStore/CertChainRemoval.java
TEST JDK: /home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/jdk

ACTION: build -- Passed. Build successful
REASON: Named class compiled on demand
TIME:   0.703 seconds
messages:
command: build CertChainRemoval
reason: Named class compiled on demand
started: Fri May 26 11:33:03 NZST 2023
Test directory:
  compile: CertChainRemoval
finished: Fri May 26 11:33:04 NZST 2023
elapsed time (seconds): 0.703

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.702 seconds
messages:
command: compile /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java
reason: .class file out of date or does not exist
started: Fri May 26 11:33:03 NZST 2023
Mode: agentvm
Agent id: 1
finished: Fri May 26 11:33:04 NZST 2023
elapsed time (seconds): 0.702
configuration:
Boot Layer (javac runtime environment)
  class path: /home/vladimirp/git/jtreg/build/images/jtreg/lib/javatest.jar 
              /home/vladimirp/git/jtreg/build/images/jtreg/lib/jtreg.jar 
  patch:      java.base /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/patches/java.base

javac compilation environment
  source path: /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore
               /home/vladimirp/git/jdk/test/lib
               /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11
  class path:  /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore
               /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d
               /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/test/lib
               /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11
               /home/vladimirp/git/jtreg/build/images/jtreg/lib/testng-7.3.0.jar
               /home/vladimirp/git/jtreg/build/images/jtreg/lib/guice-4.2.3.jar
               /home/vladimirp/git/jtreg/build/images/jtreg/lib/jcommander-1.78.jar

rerun:
cd /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/scratch/0 && \
DISPLAY=:1 \
GNOME_DESKTOP_SESSION_ID=this-is-deprecated \
HOME=/home/vladimirp \
LANG=en_US.UTF-8 \
LC_ALL=C \
PATH=/bin:/usr/bin:/usr/sbin \
TEST_IMAGE_DIR=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/test \
XMODIFIERS=@im=ibus \
_JVM_DWARF_PATH=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/symbols \
    /home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/jdk/bin/javac \
        -J-Xmx768m \
        -J-XX:MaxRAMPercentage=1.5625 \
        -J-Dtest.boot.jdk=/usr/lib/jvm/java-20-openjdk-amd64 \
        -J-Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/tmp \
        -J-ea \
        -J-esa \
        -J-Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=1.5625 -Dtest.boot.jdk=/usr/lib/jvm/java-20-openjdk-amd64 -Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/tmp -ea -esa' \
        -J-Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=1.5625 -J-Dtest.boot.jdk=/usr/lib/jvm/java-20-openjdk-amd64 -J-Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/tmp -J-ea -J-esa' \
        -J-Dtest.compiler.opts= \
        -J-Dtest.java.opts= \
        -J-Dtest.jdk=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/jdk \
        -J-Dcompile.jdk=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/jdk \
        -J-Dtest.timeout.factor=4.0 \
        -J-Dtest.nativepath=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/test/jdk/jtreg/native \
        -J-Dtest.root=/home/vladimirp/git/jdk/test/jdk \
        -J-Dtest.name=sun/security/pkcs11/KeyStore/CertChainRemoval.java \
        -J-Dtest.file=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java \
        -J-Dtest.src=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore \
        -J-Dtest.src.path=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore:/home/vladimirp/git/jdk/test/lib:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11 \
        -J-Dtest.classes=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d \
        -J-Dtest.class.path=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11 \
        -J-Dtest.class.path.prefix=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11 \
        -d /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d \
        -sourcepath /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore:/home/vladimirp/git/jdk/test/lib:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11 \
        -classpath /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11:/home/vladimirp/git/jtreg/build/images/jtreg/lib/testng-7.3.0.jar:/home/vladimirp/git/jtreg/build/images/jtreg/lib/guice-4.2.3.jar:/home/vladimirp/git/jtreg/build/images/jtreg/lib/jcommander-1.78.jar /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java
direct:
/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/PKCS11Test.java:168: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal
                System.setSecurityManager(new SecurityManager());
                                              ^
/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/PKCS11Test.java:168: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                System.setSecurityManager(new SecurityManager());
                      ^
/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/PKCS11Test.java:180: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal
                System.setSecurityManager(null);
                      ^
/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/PKCS11Test.java:874: warning: [removal] Policy in java.security has been deprecated and marked for removal
        Policy.setPolicy(null); // Clear the policy created by JIB if any
        ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings

ACTION: testng -- Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1
REASON: User specified action: run testng/othervm CertChainRemoval 
TIME:   0.41 seconds
messages:
command: testng CertChainRemoval
reason: User specified action: run testng/othervm CertChainRemoval 
started: Fri May 26 11:33:04 NZST 2023
Mode: othervm [/othervm specified]
finished: Fri May 26 11:33:04 NZST 2023
elapsed time (seconds): 0.41
configuration:
STDOUT:
config CertChainRemoval.setUp(): success
Beginning test run CertChainRemoval...
Cannot resolve artifact, please check if JIB jar is present in classpath.
nssLibDir: /usr/lib/x86_64-linux-gnu/
Running test with provider SunPKCS11-nss (security manager disabled) ...
Starting with: 
Entry# 1 = ca1
Entry# 2 = root
Entry# 3 = pk1
========
Initial PKCS11 KeyStore: 
========
Add pk1, ca1 and root, then delete pk1
test CertChainRemoval.test(): failure
java.security.KeyStoreException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_GENERAL_ERROR
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.engineSetEntry(P11KeyStore.java:1121)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.engineSetKeyEntry(P11KeyStore.java:462)
        at java.base/java.security.KeyStore.setKeyEntry(KeyStore.java:1192)
        at CertChainRemoval.main(CertChainRemoval.java:141)
        at PKCS11Test.premain(PKCS11Test.java:174)
        at PKCS11Test.testNSS(PKCS11Test.java:550)
        at PKCS11Test.main(PKCS11Test.java:210)
        at PKCS11Test.main(PKCS11Test.java:186)
        at CertChainRemoval.test(CertChainRemoval.java:77)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
        at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
        at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
        at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
        at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
        at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1593)
        at org.testng.TestRunner.privateRun(TestRunner.java:764)
        at org.testng.TestRunner.run(TestRunner.java:585)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
        at org.testng.SuiteRunner.run(SuiteRunner.java:286)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
        at org.testng.TestNG.runSuites(TestNG.java:1069)
        at org.testng.TestNG.run(TestNG.java:1037)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:93)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:53)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_GENERAL_ERROR
        at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_CreateObject(Native Method)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.storeCert(P11KeyStore.java:1576)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.storeChain(P11KeyStore.java:1591)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.storePkey(P11KeyStore.java:1814)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11KeyStore.engineSetEntry(P11KeyStore.java:1117)
        ... 37 more

===============================================
sun/security/pkcs11/KeyStore/CertChainRemoval.java
Total tests run: 1, Passes: 0, Failures: 1, Skips: 0
===============================================

STDERR:
java.lang.Exception: failures: 1
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:95)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:53)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1583)

JavaTest Message: Test threw exception: java.lang.Exception: failures: 1
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 1
rerun:
cd /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/scratch/0 && \
DISPLAY=:1 \
GNOME_DESKTOP_SESSION_ID=this-is-deprecated \
HOME=/home/vladimirp \
LANG=en_US.UTF-8 \
LC_ALL=C \
PATH=/bin:/usr/bin:/usr/sbin \
TEST_IMAGE_DIR=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/test \
XMODIFIERS=@im=ibus \
_JVM_DWARF_PATH=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/symbols \
CLASSPATH=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/test/lib:/home/vladimirp/git/jdk/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11:/home/vladimirp/git/jtreg/build/images/jtreg/lib/testng-7.3.0.jar:/home/vladimirp/git/jtreg/build/images/jtreg/lib/guice-4.2.3.jar:/home/vladimirp/git/jtreg/build/images/jtreg/lib/jcommander-1.78.jar:/home/vladimirp/git/jtreg/build/images/jtreg/lib/javatest.jar:/home/vladimirp/git/jtreg/build/images/jtreg/lib/jtreg.jar \
    /home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/jdk/bin/java \
        -Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=1.5625 -Dtest.boot.jdk=/usr/lib/jvm/java-20-openjdk-amd64 -Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/tmp -ea -esa' \
        -Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=1.5625 -J-Dtest.boot.jdk=/usr/lib/jvm/java-20-openjdk-amd64 -J-Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/tmp -J-ea -J-esa' \
        -Dtest.compiler.opts= \
        -Dtest.java.opts= \
        -Dtest.jdk=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/jdk \
        -Dcompile.jdk=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/jdk \
        -Dtest.timeout.factor=4.0 \
        -Dtest.nativepath=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/test/jdk/jtreg/native \
        -Dtest.root=/home/vladimirp/git/jdk/test/jdk \
        -Dtest.name=sun/security/pkcs11/KeyStore/CertChainRemoval.java \
        -Dtest.file=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java \
        -Dtest.src=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore \
        -Dtest.src.path=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore:/home/vladimirp/git/jdk/test/lib:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11 \
        -Dtest.classes=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d \
        -Dtest.class.path=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11 \
        -Dtest.class.path.prefix=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11/KeyStore/CertChainRemoval.d:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/KeyStore:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/classes/0/sun/security/pkcs11 \
        -Xmx768m \
        -XX:MaxRAMPercentage=1.5625 \
        -Dtest.boot.jdk=/usr/lib/jvm/java-20-openjdk-amd64 \
        -Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/tmp \
        -ea \
        -esa \
        -Djava.library.path=/home/vladimirp/git/jdk/build/linux-x86_64-server-release/images/test/jdk/jtreg/native \
        com.sun.javatest.regtest.agent.MainWrapper /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/sun/security/pkcs11/KeyStore/CertChainRemoval.d/testng.0.jta sun/security/pkcs11/KeyStore/CertChainRemoval.java false CertChainRemoval

TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1
--------------------------------------------------
Test results: failed: 1
Report written to /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-results/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/html/report.html
Results written to /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java
Error: Some tests failed or other problems occurred.
Finished running test 'jtreg:test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java'
Test report is stored in build/linux-x86_64-server-release/test-results/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java

==============================
Test summary
==============================
   TEST                                              TOTAL  PASS  FAIL ERROR   
   jtreg:test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java
>>                                                       1     0     1     0 <<
==============================
TEST FAILURE

make[1]: *** [/home/vladimirp/git/jdk/make/Init.gmk:324: main] Error 1
make: *** [/home/vladimirp/git/jdk/make/Init.gmk:186: test] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-CertChainRemoval-reorder-certificates.patch
Type: text/x-patch
Size: 3325 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/jdk-dev/attachments/20230526/e9f84185/0001-CertChainRemoval-reorder-certificates-0001.patch>
-------------- next part --------------
make TEST="test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java" test
Building target 'test' in configuration 'linux-x86_64-server-release'
Creating jdk image
Creating CDS archive for jdk image for server
Creating CDS-NOCOOPS archive for jdk image for server
Test selection 'test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java', will run:
* jtreg:test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java

Running test 'jtreg:test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java'
Passed: sun/security/pkcs11/KeyStore/CertChainRemoval.java
Test results: passed: 1
Report written to /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-results/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java/html/report.html
Results written to /home/vladimirp/git/jdk/build/linux-x86_64-server-release/test-support/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java
Finished running test 'jtreg:test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java'
Test report is stored in build/linux-x86_64-server-release/test-results/jtreg_test_jdk_sun_security_pkcs11_KeyStore_CertChainRemoval_java

==============================
Test summary
==============================
   TEST                                              TOTAL  PASS  FAIL ERROR   
   jtreg:test/jdk/sun/security/pkcs11/KeyStore/CertChainRemoval.java
                                                         1     1     0     0   
==============================
TEST SUCCESS

Finished building target 'test' in configuration 'linux-x86_64-server-release'


More information about the jdk-dev mailing list