From kopp.dev at gmail.com Wed Oct 19 12:10:16 2022 From: kopp.dev at gmail.com (Oliver Kopp) Date: Wed, 19 Oct 2022 14:10:16 +0200 Subject: Starting tests for jkd/tools/jlink Message-ID: Hi, I tried to follow the instructions at https://github.com/openjdk/jdk/blob/master/doc/testing.md#using-make-test-the-run-test-framework to run a test. I tried to execute the following statement: make test TEST="jtreg:test/jdk/tools test/jdk/tools/jlink/JLink100Modules.java" The result is as follows (excerpt) Building target 'test' in configuration 'windows-x86_64-server-release' Test selection 'jtreg:test/jdk/tools test/jdk/tools/jlink/JLink100Modules.java', will run: * jtreg:test/jdk/tools * jtreg:test/jdk/tools/jlink/JLink100Modules.java Running test 'jtreg:test/jdk/tools' Error occurred during initialization of boot layer java.lang.NullPointerException: Cannot invoke "java.lang.Iterable.iterator()" because "enums" is null Error: Compilation of extra property definition files failed. rc=1 Finished running test 'jtreg:test/jdk/tools' Test report is stored in build/windows-x86_64-server-release/test-results/jtreg_test_jdk_tools Is there a previous make target missing I should execute? I am running on Windows 10 and have configured the jdk as follows: ./configure --with-boot-jdk=/cygdrive/c/Program\ Files/OpenJDK/jdk-19/ --with-jtreg=/cygdrive/c/git-repositories/jdk/jtreg/build/images/jtreg Cheers, Oliver -------------- next part -------------- An HTML attachment was scrubbed... URL: From Alan.Bateman at oracle.com Wed Oct 19 12:19:50 2022 From: Alan.Bateman at oracle.com (Alan Bateman) Date: Wed, 19 Oct 2022 13:19:50 +0100 Subject: Starting tests for jkd/tools/jlink In-Reply-To: References: Message-ID: <1b12b3e7-6daa-41a0-eaf0-3b302c4432c5@oracle.com> On 19/10/2022 14:10, Oliver Kopp wrote: > Hi, > > I tried to follow the instructions at > https://github.com/openjdk/jdk/blob/master/doc/testing.md#using-make-test-the-run-test-framework > to run a test. > > I tried to execute the following statement: > > make test TEST="jtreg:test/jdk/tools > test/jdk/tools/jlink/JLink100Modules.java" > > The result is as follows (excerpt) > > Building target 'test' in configuration 'windows-x86_64-server-release' > Test selection 'jtreg:test/jdk/tools > test/jdk/tools/jlink/JLink100Modules.java', will run: > * jtreg:test/jdk/tools > * jtreg:test/jdk/tools/jlink/JLink100Modules.java > > Running test 'jtreg:test/jdk/tools' > Error occurred during initialization of boot layer > java.lang.NullPointerException: Cannot invoke > "java.lang.Iterable.iterator()" because "enums" is null > Error: Compilation of extra property definition files failed. rc=1 > Finished running test 'jtreg:test/jdk/tools' > Test report is stored in > build/windows-x86_64-server-release/test-results/jtreg_test_jdk_tools > I'm guessing this is related to pull/10704. What does the following print build/windows-x86_64-server-release/images/jdk/bin/java --add-modules ALL-MODULE-PATH -Xlog:init=debug -XX:+UnlockDiagnosticVMOptions -XX:+BytecodeVerificationLocal -version -Alan