RFR: 8080272 Refactor I/O stream copying to use InputStream.transferTo/readAllBytes and Files.copy [v8]
Andrey Turbanov
github.com+741251+turbanoff at openjdk.java.net
Sat Feb 13 10:59:38 UTC 2021
On Sat, 13 Feb 2021 10:20:29 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:
>> ## tools/jpackage/share/jdk/jpackage/tests/UnicodeArgsTest.java
>>
>> make test TEST="jtreg:tools/jpackage/share/jdk/jpackage/tests/UnicodeArgsTest.java"
>>
>> STDOUT:
>> [00:56:54.598] Parsing [--jpt-run=jdk.jpackage.tests.UnicodeArgsTest]...
>> [00:56:54.650] jdk.jpackage.tests.UnicodeArgsTest.test8246042 -> [public void jdk.jpackage.tests.UnicodeArgsTest.test8246042(boolean)]
>> [00:56:54.682] Create: UnicodeArgsTest.test8246042(true)
>> [00:56:54.684] Create: UnicodeArgsTest.test8246042(false)
>> [00:56:54.688] [ RUN ] UnicodeArgsTest.test8246042(false)
>> [00:56:54.693] TRACE: Test string code points: [0x00e9]
>> [00:56:54.875] TRACE: exec: Execute tool provider [javac -d .\test8246042.9782d070\jar-workdir F:\Projects\official_openjdk\test\jdk\tools\jpackage\apps\image\Hello.java](4)...
>> [00:56:55.996] TRACE: exec: Done. Exit code: 0
>> [00:56:55.997] TRACE: assertEquals(0): Check command tool provider [javac -d .\test8246042.9782d070\jar-workdir F:\Projects\official_openjdk\test\jdk\tools\jpackage\apps\image\Hello.java](4) exited with 0 code
>> [00:56:56.014] TRACE: exec: Execute tool provider [jar -c -f .\test8246042.9782d070\input\hello.jar -C .\test8246042.9782d070\jar-workdir .](7)...
>> [00:56:56.188] TRACE: exec: Done. Exit code: 0
>> [00:56:56.188] TRACE: assertEquals(0): Check command tool provider [jar -c -f .\test8246042.9782d070\input\hello.jar -C .\test8246042.9782d070\jar-workdir .](7) exited with 0 code
>> [00:56:56.196] TRACE: exec: Execute tool provider [jpackage --input .\test8246042.9782d070\input --dest .\test8246042.9782d070\output --name 8246042UnicodeArgsTest --type app-image --main-jar hello.jar --main-class Hello --win-console --arguments ? --verbose](17)...
>> [00:56:56.225] Creating app package: 8246042UnicodeArgsTest in F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0.\test8246042.9782d070\output
>> [00:57:07.680] Command:
>> jlink --output .\test8246042.9782d070\output\8246042UnicodeArgsTest\runtime --module-path f:\\projects\\official_openjdk\\build\\windows-x86_64-server-release\\images\\jdk\\jmods --add-modules jdk.management.jfr,java.rmi,jdk.jdi,jdk.charsets,java.xml,jdk.xml.dom,java.datatransfer,jdk.jstatd,jdk.httpserver,java.desktop,java.security.sasl,jdk.zipfs,java.base,jdk.crypto.ec,jdk.javadoc,jdk.management.agent,jdk.jshell,jdk.editpad,java.sql.rowset,jdk.jsobject,jdk.sctp,java.smartcardio,jdk.jlink,jdk.unsupported,java.security.jgss,java.compiler,jdk.nio.mapmode,jdk.dynalink,jdk.unsupported.desktop,jdk.accessibility,jdk.security.jgss,java.sql,jdk.incubator.vector,java.xml.crypto,java.logging,java.transaction.xa,jdk.jfr,jdk.crypto.cryptoki,jdk.net,java.naming,jdk.internal.ed,java.prefs,java.net.http,jdk.compiler,jdk.naming.rmi,jdk.internal.opt,jdk.jconsole,jdk.attach,jdk.crypto.mscapi,jdk.internal.le,java.management,jdk.jdwp.agent,jdk.internal.jvmstat,jdk.incubator.foreign,java.instr
ument,jdk.management,jdk.security.auth,java.scripting,jdk.jdeps,jdk.jartool,java.management.rmi,jdk.jpackage,jdk.naming.dns,jdk.localedata --strip-native-commands --strip-debug --no-man-pages --no-header-files
>> [00:57:07.680] Output:
>> WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
>>
>> [00:57:07.681] Returned: 0
>>
>> [00:57:07.685] Using default package resource java48.ico [icon] (add 8246042UnicodeArgsTest.ico to the resource-dir to customize).
>> [00:57:07.707] Warning: Windows Defender may prevent jpackage from functioning. If there is an issue, it can be addressed by either disabling realtime monitoring, or adding an exclusion for the directory "f:\projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\tmp\jdk.jpackage16485063537873697224".
>> [00:57:07.712] Using default package resource WinLauncher.template [Template for creating executable properties file] (add 8246042UnicodeArgsTest.properties to the resource-dir to customize).
>> [00:57:07.746] Succeeded in building Windows Application Image package
>> [00:57:07.748] TRACE: exec: Done. Exit code: 0
>> [00:57:07.748] TRACE: assertEquals(0): Check command tool provider [jpackage --input .\test8246042.9782d070\input --dest .\test8246042.9782d070\output --name 8246042UnicodeArgsTest --type app-image --main-jar hello.jar --main-class Hello --win-console --arguments ? --verbose](17) exited with 0 code
>> [00:57:07.766] TRACE: assertStringListEquals(): Check there is only one file with [.jpackage.xml] name in the package
>> [00:57:07.768] TRACE: assertStringListEquals(1, .\test8246042.9782d070\output\8246042UnicodeArgsTest\app.jpackage.xml)
>> [00:57:07.769] TRACE: assertTrue(): Check [.\test8246042.9782d070\output\8246042UnicodeArgsTest\runtime] path exists
>> [00:57:07.769] TRACE: assertTrue(): Check [.\test8246042.9782d070\output\8246042UnicodeArgsTest\runtime] is a directory
>> [00:57:07.770] TRACE: assertTrue(): Check [.\test8246042.9782d070\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe] path exists
>> [00:57:07.770] TRACE: assertTrue(): Check [.\test8246042.9782d070\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe] is a file
>> [00:57:07.770] TRACE: assertTrue(): Check [.\test8246042.9782d070\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe] file is executable
>> [00:57:07.771] TRACE: assertTrue(): Check [.\test8246042.9782d070\output\8246042UnicodeArgsTest\app\8246042UnicodeArgsTest.cfg] path exists
>> [00:57:07.771] TRACE: assertTrue(): Check [.\test8246042.9782d070\output\8246042UnicodeArgsTest\app\8246042UnicodeArgsTest.cfg] is a file
>> [00:57:07.780] TRACE: Clearing PATH in environment
>> [00:57:07.780] TRACE: exec: Execute [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0.\test8246042.9782d070\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe](1); inherit I/O; in directory [.\test8246042.9782d070]...
>> hello: Environment supports a display
>> hello: Environment supports a desktop
>> [0x0065]
>> jpackage test application
>> args.length: 1
>> e
>> hello: Output file: [appOutput.txt]
>> [00:57:09.302] TRACE: exec: Done. Exit code: 0
>> [00:57:09.302] TRACE: assertEquals(0): Check command [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0.\test8246042.9782d070\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe](1) exited with 0 code
>> [00:57:09.303] TRACE: assertTrue(): Check [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.9782d070\appOutput.txt] path exists
>> [00:57:09.303] TRACE: assertTrue(): Check [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.9782d070\appOutput.txt] is a file
>> [00:57:09.305] TRACE: assertStringListEquals(): Check contents of [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.9782d070\appOutput.txt] file
>> [00:57:09.305] TRACE: assertStringListEquals(1, jpackage test application)
>> [00:57:09.306] TRACE: assertStringListEquals(2, args.length: 1)
>> [00:57:09.307] ERROR: (3) Expected [?]. Actual [e]: Check contents of [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.9782d070\appOutput.txt] file
>> [00:57:09.308] [ FAILED ] UnicodeArgsTest.test8246042(false); checks=15
>> [00:57:09.310] [ RUN ] UnicodeArgsTest.test8246042(true)
>> [00:57:09.312] TRACE: Test string code points: [0x00e9]
>> [00:57:09.314] TRACE: exec: Execute tool provider [javac -d .\test8246042.b31bae11\jar-workdir F:\Projects\official_openjdk\test\jdk\tools\jpackage\apps\image\Hello.java](4)...
>> [00:57:09.658] TRACE: exec: Done. Exit code: 0
>> [00:57:09.659] TRACE: assertEquals(0): Check command tool provider [javac -d .\test8246042.b31bae11\jar-workdir F:\Projects\official_openjdk\test\jdk\tools\jpackage\apps\image\Hello.java](4) exited with 0 code
>> [00:57:09.661] TRACE: exec: Execute tool provider [jar -c -f .\test8246042.b31bae11\input\hello.jar -C .\test8246042.b31bae11\jar-workdir .](7)...
>> [00:57:09.667] TRACE: exec: Done. Exit code: 0
>> [00:57:09.667] TRACE: assertEquals(0): Check command tool provider [jar -c -f .\test8246042.b31bae11\input\hello.jar -C .\test8246042.b31bae11\jar-workdir .](7) exited with 0 code
>> [00:57:09.670] TRACE: exec: Execute tool provider [jpackage --input .\test8246042.b31bae11\input --dest .\test8246042.b31bae11\output --name 8246042UnicodeArgsTest --type app-image --main-jar hello.jar --main-class Hello --win-console --verbose](15)...
>> [00:57:09.670]
>> jpackage argument list:
>> [--input, .\test8246042.b31bae11\input, --dest, .\test8246042.b31bae11\output, --name, 8246042UnicodeArgsTest, --type, app-image, --main-jar, hello.jar, --main-class, Hello, --win-console, --verbose]
>>
>> [00:57:09.679] Creating app package: 8246042UnicodeArgsTest in F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0.\test8246042.b31bae11\output
>> [00:57:18.770] Command:
>> jlink --output .\test8246042.b31bae11\output\8246042UnicodeArgsTest\runtime --module-path f:\\projects\\official_openjdk\\build\\windows-x86_64-server-release\\images\\jdk\\jmods --add-modules jdk.management.jfr,java.rmi,jdk.jdi,jdk.charsets,jdk.xml.dom,java.xml,java.datatransfer,jdk.jstatd,jdk.httpserver,java.desktop,java.security.sasl,jdk.zipfs,java.base,jdk.crypto.ec,jdk.javadoc,jdk.management.agent,jdk.jshell,jdk.editpad,jdk.sctp,jdk.jsobject,java.sql.rowset,jdk.jlink,java.smartcardio,jdk.unsupported,java.security.jgss,java.compiler,jdk.nio.mapmode,jdk.dynalink,jdk.unsupported.desktop,jdk.accessibility,jdk.security.jgss,java.sql,jdk.incubator.vector,java.xml.crypto,java.logging,java.transaction.xa,jdk.jfr,jdk.crypto.cryptoki,jdk.net,java.naming,jdk.internal.ed,java.prefs,java.net.http,jdk.compiler,jdk.internal.opt,jdk.naming.rmi,jdk.jconsole,jdk.attach,jdk.crypto.mscapi,jdk.internal.le,java.management,jdk.jdwp.agent,jdk.incubator.foreign,jdk.internal.jvmstat,java.instr
ument,jdk.management,jdk.security.auth,java.scripting,jdk.jdeps,jdk.jartool,jdk.jpackage,java.management.rmi,jdk.naming.dns,jdk.localedata --strip-native-commands --strip-debug --no-man-pages --no-header-files
>> [00:57:18.770] Output:
>> WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
>>
>> [00:57:18.770] Returned: 0
>>
>> [00:57:18.771] Using default package resource java48.ico [icon] (add 8246042UnicodeArgsTest.ico to the resource-dir to customize).
>> [00:57:18.778] Warning: Windows Defender may prevent jpackage from functioning. If there is an issue, it can be addressed by either disabling realtime monitoring, or adding an exclusion for the directory "f:\projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\tmp\jdk.jpackage8738450931736312275".
>> [00:57:18.779] Using default package resource WinLauncher.template [Template for creating executable properties file] (add 8246042UnicodeArgsTest.properties to the resource-dir to customize).
>> [00:57:18.787] Succeeded in building Windows Application Image package
>> [00:57:18.788] TRACE: exec: Done. Exit code: 0
>> [00:57:18.789] TRACE: assertEquals(0): Check command tool provider [jpackage --input .\test8246042.b31bae11\input --dest .\test8246042.b31bae11\output --name 8246042UnicodeArgsTest --type app-image --main-jar hello.jar --main-class Hello --win-console --verbose](15) exited with 0 code
>> [00:57:18.804] TRACE: assertStringListEquals(): Check there is only one file with [.jpackage.xml] name in the package
>> [00:57:18.804] TRACE: assertStringListEquals(1, .\test8246042.b31bae11\output\8246042UnicodeArgsTest\app.jpackage.xml)
>> [00:57:18.805] TRACE: assertTrue(): Check [.\test8246042.b31bae11\output\8246042UnicodeArgsTest\runtime] path exists
>> [00:57:18.805] TRACE: assertTrue(): Check [.\test8246042.b31bae11\output\8246042UnicodeArgsTest\runtime] is a directory
>> [00:57:18.806] TRACE: assertTrue(): Check [.\test8246042.b31bae11\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe] path exists
>> [00:57:18.806] TRACE: assertTrue(): Check [.\test8246042.b31bae11\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe] is a file
>> [00:57:18.806] TRACE: assertTrue(): Check [.\test8246042.b31bae11\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe] file is executable
>> [00:57:18.807] TRACE: assertTrue(): Check [.\test8246042.b31bae11\output\8246042UnicodeArgsTest\app\8246042UnicodeArgsTest.cfg] path exists
>> [00:57:18.807] TRACE: assertTrue(): Check [.\test8246042.b31bae11\output\8246042UnicodeArgsTest\app\8246042UnicodeArgsTest.cfg] is a file
>> [00:57:18.808] TRACE: Clearing PATH in environment
>> [00:57:18.808] TRACE: exec: Execute [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0.\test8246042.b31bae11\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe ?](2); inherit I/O; in directory [.\test8246042.b31bae11]...
>> hello: Environment supports a display
>> hello: Environment supports a desktop
>> [0x0065]
>> jpackage test application
>> args.length: 1
>> e
>> hello: Output file: [appOutput.txt]
>> [00:57:20.327] TRACE: exec: Done. Exit code: 0
>> [00:57:20.328] TRACE: assertEquals(0): Check command [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0.\test8246042.b31bae11\output\8246042UnicodeArgsTest\8246042UnicodeArgsTest.exe ?](2) exited with 0 code
>> [00:57:20.328] TRACE: assertTrue(): Check [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.b31bae11\appOutput.txt] path exists
>> [00:57:20.329] TRACE: assertTrue(): Check [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.b31bae11\appOutput.txt] is a file
>> [00:57:20.330] TRACE: assertStringListEquals(): Check contents of [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.b31bae11\appOutput.txt] file
>> [00:57:20.330] TRACE: assertStringListEquals(1, jpackage test application)
>> [00:57:20.330] TRACE: assertStringListEquals(2, args.length: 1)
>> [00:57:20.330] ERROR: (3) Expected [?]. Actual [e]: Check contents of [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.b31bae11\appOutput.txt] file
>> [00:57:20.331] [ FAILED ] UnicodeArgsTest.test8246042(true); checks=15
>> [00:57:20.332] [==========] 2 tests ran
>> [00:57:20.333] [ PASSED ] 0 tests
>> [00:57:20.334] [ FAILED ] 2 tests, listed below
>> [00:57:20.335] [ FAILED ] UnicodeArgsTest.test8246042(false); workDir=[.\test8246042.9782d070]
>> [00:57:20.335] [ FAILED ] UnicodeArgsTest.test8246042(true); workDir=[.\test8246042.b31bae11]
>> [00:57:20.336] 2 FAILED TESTS
>> STDERR:
>> java.lang.AssertionError: (3) Expected [?]. Actual [e]: Check contents of [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.9782d070\appOutput.txt] file
>> at jdk.jpackage.test.TKit.error(TKit.java:293)
>> at jdk.jpackage.test.TKit.lambda$assertStringListEquals$20(TKit.java:765)
>> at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
>> at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
>> at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
>> at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
>> at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
>> at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
>> at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
>> at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
>> at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
>> at jdk.jpackage.test.TKit.assertStringListEquals(TKit.java:759)
>> at jdk.jpackage.test.HelloApp.verifyOutputFile(HelloApp.java:225)
>> at jdk.jpackage.test.HelloApp.verifyOutputFile(HelloApp.java:204)
>> at jdk.jpackage.test.HelloApp$AppOutputVerifier.executeAndVerifyOutput(HelloApp.java:405)
>> at jdk.jpackage.test.HelloApp$AppOutputVerifier.executeAndVerifyOutput(HelloApp.java:417)
>> at jdk.jpackage.test.HelloApp.executeLauncherAndVerifyOutput(HelloApp.java:319)
>> at jdk.jpackage.tests.UnicodeArgsTest.test8246042(UnicodeArgsTest.java:67)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>> at jdk.jpackage.test.MethodCall.accept(MethodCall.java:145)
>> at jdk.jpackage.test.TestInstance.run(TestInstance.java:230)
>> at jdk.jpackage.test.TKit.lambda$ignoreExceptions$6(TKit.java:155)
>> at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:140)
>> at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
>> at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
>> at jdk.jpackage.test.TKit.lambda$runTests$5(TKit.java:137)
>> at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
>> at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:123)
>> at jdk.jpackage.test.TKit.runTests(TKit.java:136)
>> at jdk.jpackage.test.Main.runTests(Main.java:79)
>> at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
>> at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
>> at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:123)
>> at jdk.jpackage.test.Main.main(Main.java:75)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>> at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
>> at java.base/java.lang.Thread.run(Thread.java:831)
>> java.lang.AssertionError: (3) Expected [?]. Actual [e]: Check contents of [F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_tools_jpackage_share_jdk_jpackage_tests_UnicodeArgsTest_java\scratch\0\test8246042.b31bae11\appOutput.txt] file
>> at jdk.jpackage.test.TKit.error(TKit.java:293)
>> at jdk.jpackage.test.TKit.lambda$assertStringListEquals$20(TKit.java:765)
>> at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
>> at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
>> at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
>> at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
>> at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
>> at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
>> at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
>> at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
>> at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
>> at jdk.jpackage.test.TKit.assertStringListEquals(TKit.java:759)
>> at jdk.jpackage.test.HelloApp.verifyOutputFile(HelloApp.java:225)
>> at jdk.jpackage.test.HelloApp.verifyOutputFile(HelloApp.java:204)
>> at jdk.jpackage.test.HelloApp$AppOutputVerifier.executeAndVerifyOutput(HelloApp.java:405)
>> at jdk.jpackage.test.HelloApp$AppOutputVerifier.executeAndVerifyOutput(HelloApp.java:417)
>> at jdk.jpackage.test.HelloApp.executeLauncherAndVerifyOutput(HelloApp.java:319)
>> at jdk.jpackage.tests.UnicodeArgsTest.test8246042(UnicodeArgsTest.java:65)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>> at jdk.jpackage.test.MethodCall.accept(MethodCall.java:145)
>> at jdk.jpackage.test.TestInstance.run(TestInstance.java:230)
>> at jdk.jpackage.test.TKit.lambda$ignoreExceptions$6(TKit.java:155)
>> at jdk.jpackage.test.TKit.lambda$runTests$4(TKit.java:140)
>> at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
>> at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
>> at jdk.jpackage.test.TKit.lambda$runTests$5(TKit.java:137)
>> at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
>> at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:123)
>> at jdk.jpackage.test.TKit.runTests(TKit.java:136)
>> at jdk.jpackage.test.Main.runTests(Main.java:79)
>> at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
>> at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
>> at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:123)
>> at jdk.jpackage.test.Main.main(Main.java:75)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>> at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
>> at java.base/java.lang.Thread.run(Thread.java:831)
>> jdk.jpackage.test.Functional$ExceptionBox: java.lang.RuntimeException: 2 FAILED TESTS
>> at jdk.jpackage.test.Functional.rethrowUnchecked(Functional.java:161)
>> at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:107)
>> at jdk.jpackage.test.TKit.withExtraLogStream(TKit.java:123)
>> at jdk.jpackage.test.Main.main(Main.java:75)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>> at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
>> at java.base/java.lang.Thread.run(Thread.java:831)
>> Caused by: java.lang.RuntimeException: 2 FAILED TESTS
>> at jdk.jpackage.test.Main.reportSummary(Main.java:130)
>> at jdk.jpackage.test.Main.runTests(Main.java:90)
>> at jdk.jpackage.test.Main.lambda$main$2(Main.java:75)
>> at jdk.jpackage.test.Functional$ThrowingRunnable.lambda$toRunnable$0(Functional.java:105)
>> ... 8 more
>>
>> JavaTest Message: Test threw exception: jdk.jpackage.test.Functional$ExceptionBox: java.lang.RuntimeException: 2 FAILED TESTS
>> JavaTest Message: shutting down test
>>
>> STATUS:Failed.`main' threw exception: jdk.jpackage.test.Functional$ExceptionBox: java.lang.RuntimeException: 2 FAILED TESTS
>>
>> Oh. This one is tricky. Will investigate later.
>
> This fours tests pass without problems, when I run them separately.
>
> ## sun/security/tools/jarsigner/TimestampCheck.java
> ## sun/security/tools/keytool/DefaultOptions.java
> ## sanity/client/SwingSet/src/ColorChooserDemoTest.java
> ## sanity/client/SwingSet/src/SwingSet2DemoTest.java
>
> make test TEST="jtreg:sun/security/tools/jarsigner/TimestampCheck.java sun/security/tools/keytool/DefaultOptions.java sanity/client/SwingSet/src/SwingSet2DemoTest.java sanity/client/SwingSet/src/ColorChooserDemoTest.java"
>
> Building target 'test' in configuration 'windows-x86_64-server-release'
> Test selection 'jtreg:sun/security/tools/jarsigner/TimestampCheck.java sun/security/tools/keytool/DefaultOptions.java sanity/client/SwingSet/src/SwingSet2DemoTest.java sanity/client/SwingSet/src/ColorChooserDemoTest.java', will run:
> * jtreg:test/jdk/sun/security/tools/jarsigner/TimestampCheck.java
> * jtreg:test/jdk/sun/security/tools/keytool/DefaultOptions.java
> * jtreg:test/jdk/sanity/client/SwingSet/src/SwingSet2DemoTest.java
> * jtreg:test/jdk/sanity/client/SwingSet/src/ColorChooserDemoTest.java
>
> Running test 'jtreg:test/jdk/sun/security/tools/jarsigner/TimestampCheck.java'
> Passed: sun/security/tools/jarsigner/TimestampCheck.java
> Test results: passed: 1
> Report written to F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-results\jtreg_test_jdk_sun_security_tools_jarsigner_TimestampCheck_java\html\report.html
> Results written to F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_sun_security_tools_jarsigner_TimestampCheck_java
> Finished running test 'jtreg:test/jdk/sun/security/tools/jarsigner/TimestampCheck.java'
> Test report is stored in build/windows-x86_64-server-release/test-results/jtreg_test_jdk_sun_security_tools_jarsigner_TimestampCheck_java
>
> Running test 'jtreg:test/jdk/sun/security/tools/keytool/DefaultOptions.java'
> Passed: sun/security/tools/keytool/DefaultOptions.java
> Test results: passed: 1
> Report written to F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-results\jtreg_test_jdk_sun_security_tools_keytool_DefaultOptions_java\html\report.html
> Results written to F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_sun_security_tools_keytool_DefaultOptions_java
> Finished running test 'jtreg:test/jdk/sun/security/tools/keytool/DefaultOptions.java'
> Test report is stored in build/windows-x86_64-server-release/test-results/jtreg_test_jdk_sun_security_tools_keytool_DefaultOptions_java
>
> Running test 'jtreg:test/jdk/sanity/client/SwingSet/src/SwingSet2DemoTest.java'
> Passed: sanity/client/SwingSet/src/SwingSet2DemoTest.java
> Test results: passed: 1
> Report written to F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-results\jtreg_test_jdk_sanity_client_SwingSet_src_SwingSet2DemoTest_java\html\report.html
> Results written to F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_sanity_client_SwingSet_src_SwingSet2DemoTest_java
> Finished running test 'jtreg:test/jdk/sanity/client/SwingSet/src/SwingSet2DemoTest.java'
> Test report is stored in build/windows-x86_64-server-release/test-results/jtreg_test_jdk_sanity_client_SwingSet_src_SwingSet2DemoTest_java
>
> Running test 'jtreg:test/jdk/sanity/client/SwingSet/src/ColorChooserDemoTest.java'
> Passed: sanity/client/SwingSet/src/ColorChooserDemoTest.java
> Test results: passed: 1
> Report written to F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-results\jtreg_test_jdk_sanity_client_SwingSet_src_ColorChooserDemoTest_java\html\report.html
> Results written to F:\Projects\official_openjdk\build\windows-x86_64-server-release\test-support\jtreg_test_jdk_sanity_client_SwingSet_src_ColorChooserDemoTest_java
> Finished running test 'jtreg:test/jdk/sanity/client/SwingSet/src/ColorChooserDemoTest.java'
> Test report is stored in build/windows-x86_64-server-release/test-results/jtreg_test_jdk_sanity_client_SwingSet_src_ColorChooserDemoTest_java
>
> ==============================
> Test summary
> ==============================
> TEST TOTAL PASS FAIL ERROR
> jtreg:test/jdk/sun/security/tools/jarsigner/TimestampCheck.java
> 1 1 0 0
> jtreg:test/jdk/sun/security/tools/keytool/DefaultOptions.java
> 1 1 0 0
> jtreg:test/jdk/sanity/client/SwingSet/src/SwingSet2DemoTest.java
> 1 1 0 0
> jtreg:test/jdk/sanity/client/SwingSet/src/ColorChooserDemoTest.java
> 1 1 0 0
> ==============================
> TEST SUCCESS
>
> Finished building target 'test' in configuration 'windows-x86_64-server-release'
## jdk/jshell/ToolBasicTest.java
make test TEST="jtreg:jdk/jshell/ToolBasicTest.java"
STDOUT:
[TestNG] Running:
jdk/jshell/ToolBasicTest.java
config ReplToolTesting.setUp(): success
test ToolBasicTest.elideStartUpFromList(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.elideStartUpFromSave(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.test8142447(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testAddExports(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testBadClasspath(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testBadModulePath(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testBadSourceJarClasspath(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testClasspathDirectory(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testClasspathJar(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testClasspathUserHomeExpansion(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testConstrainedUpdates(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testCtrlD(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testEnvInStartUp(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testFeedbackNegative(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testFeedbackNormal(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testFeedbackSilent(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testHistoryReference(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testIndent(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testInterrupt(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testLoadingFromArgs(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testModulePath(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testModulePathUserHomeExpansion(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testOpen(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testOpenFileOverHttp(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testOpenLocalFileUrl(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testOpenResource(): failure
java.lang.AssertionError: user output: printf("%4.2f", Math.PI).
expected [3.14] but found [3,14]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:496)
at org.testng.Assert.assertEquals(Assert.java:125)
at org.testng.Assert.assertEquals(Assert.java:178)
at ReplToolTesting.assertOutput(ReplToolTesting.java:529)
at ReplToolTesting.assertCommand(ReplToolTesting.java:513)
at ToolBasicTest.lambda$testOpenResource$118(ToolBasicTest.java:559)
at ReplToolTesting$PromptedCommandOutputStream.write(ReplToolTesting.java:824)
at java.base/java.io.PrintStream.write(PrintStream.java:536)
at jdk.internal.le/jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal.processOutputByte(LineDisciplineTerminal.java:253)
at jdk.internal.le/jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal$FilteringOutputStream.write(LineDisciplineTerminal.java:294)
at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:242)
at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:321)
at java.base/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:325)
at java.base/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:159)
at java.base/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:248)
at java.base/java.io.PrintWriter.flush(PrintWriter.java:396)
at jdk.internal.le/jdk.internal.org.jline.terminal.impl.AbstractTerminal.flush(AbstractTerminal.java:174)
at jdk.internal.le/jdk.internal.org.jline.utils.Display.update(Display.java:336)
at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3943)
at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3803)
at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:626)
at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:454)
at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.readLine(ConsoleIOContext.java:233)
at jdk.jshell/jdk.internal.jshell.tool.JShellTool.getInput(JShellTool.java:1263)
at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1199)
at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:991)
at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.run(JShellToolBuilder.java:240)
at ReplToolTesting.testRawRun(ReplToolTesting.java:313)
at ReplToolTesting.testRaw(ReplToolTesting.java:296)
at ReplToolTesting.test(ReplToolTesting.java:249)
at ReplToolTesting.test(ReplToolTesting.java:233)
at ReplToolTesting.test(ReplToolTesting.java:229)
at ReplToolTesting.test(ReplToolTesting.java:225)
at ToolBasicTest.testOpenResource(ToolBasicTest.java:555)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:773)
at org.testng.TestRunner.run(TestRunner.java:623)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1018)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:831)
config ReplToolTesting.setUp(): success
test ToolBasicTest.testRedeclareVariableNoInit(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testRemoteExit(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testRerun(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testRerunIdRange(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testReset(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testSave(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testStartRetain(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testStartSave(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testStartupFileOption(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testStop(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testVarsWithNotActive(): success
config ReplToolTesting.setUp(): success
test ToolBasicTest.testWarningUnchecked(): success
===============================================
jdk/jshell/ToolBasicTest.java
Total tests run: 38, Failures: 1, Skips: 0
===============================================
STDERR:
java.io.EOFException
at java.base/java.io.DataInputStream.readInt(DataInputStream.java:398)
at java.base/java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:3381)
at java.base/java.io.ObjectInputStream.readInt(ObjectInputStream.java:1113)
at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.readAndReportExecutionResult(StreamingExecutionControl.java:277)
at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.invoke(StreamingExecutionControl.java:99)
at jdk.jshell/jdk.jshell.execution.JdiDefaultExecutionControl.invoke(JdiDefaultExecutionControl.java:160)
at jdk.jshell/jdk.jshell.Eval.declare(Eval.java:943)
at jdk.jshell/jdk.jshell.Eval.eval(Eval.java:139)
at jdk.jshell/jdk.jshell.JShell.eval(JShell.java:493)
at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3609)
at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1330)
at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1228)
at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1201)
at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:991)
at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.run(JShellToolBuilder.java:240)
at ReplToolTesting.testRawRun(ReplToolTesting.java:313)
at ReplToolTesting.testRaw(ReplToolTesting.java:296)
at ReplToolTesting.test(ReplToolTesting.java:249)
at ReplToolTesting.test(ReplToolTesting.java:233)
at ReplToolTesting.test(ReplToolTesting.java:229)
at ReplToolTesting.test(ReplToolTesting.java:225)
at ToolBasicTest.testRemoteExit(ToolBasicTest.java:680)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:773)
at org.testng.TestRunner.run(TestRunner.java:623)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1018)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:831)
java.lang.Exception: failures: 1
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
at java.base/java.lang.Thread.run(Thread.java:831)
JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test
TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1
https://bugs.openjdk.java.net/browse/JDK-8212234 looks like there is already known bug this test.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1853
More information about the security-dev
mailing list