Integrated: 8350051: [JMH] Several tests fails NPE

SendaoYan syan at openjdk.org
Thu Feb 20 02:53:59 UTC 2025


On Fri, 14 Feb 2025 07:21:27 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> Several JMH tests fails 'Cannot invoke "java.io.InputStream.available()" because "is" is null', because the file 'build/linux-x86_64-server-release/images/test/micro/benchmarks.jar' missing the required xml input file defined by test/micro/org/openjdk/bench/javax/xml/AbstractXMLMicro.java. This PR copy the required xml file to benchmarks.jar, and remove two unexist xml input file.
> 
> After this PR, below JMH tests will run passes.
> 
> 
> org.openjdk.bench.javax.xml.DOM.testBuild
> org.openjdk.bench.javax.xml.DOM.testModify
> org.openjdk.bench.javax.xml.DOM.testWalk
> org.openjdk.bench.javax.xml.SAXUsingJDK.testParse
> org.openjdk.bench.javax.xml.STAX.testParse
> 
> 
> Test command:
> 
> 
> rm -rf build/jmh-result/ ; mkdir -p build/jmh-result/ ; time for test in `cat list.txt` ; do time make test TEST="micro:$test" MICRO="FORK=1;WARMUP_ITER=2" CONF=release &> build/jmh-result/$test.log ; done
> 
> 
> Change has been verified locally, no risk.

This pull request has now been integrated.

Changeset: 00d4e4a9
Author:    SendaoYan <syan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/00d4e4a9710f89506f36156c24b0f3c5412971fa
Stats:     16 lines in 2 files changed: 11 ins; 2 del; 3 mod

8350051: [JMH] Several tests fails NPE

Reviewed-by: erikj, redestad

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

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


More information about the build-dev mailing list