On Wed, 23 Apr 2025 21:05:29 GMT, Alexander Zvegintsev <[email protected]>
wrote:
>> few more clipboard tests are opensourced. Some of them are in problemlist.
>
> Alexander Zvegintsev has updated the pull request incrementally with one
> additional commit since the last revision:
>
> use ProcessTools
test/jdk/java/awt/Clipboard/LostOwnershipChainTest/SystemClipboard2ProcTest.java
line 117:
> 115: OutputAnalyzer outputAnalyzer = new OutputAnalyzer(process);
> 116:
> 117: if (!process.waitFor(15, TimeUnit.SECONDS)) {
In case of error it will be good to kill the child process via
destroyForcibly(), or you can use
`OputAnalyzer executeTestJava(String... command)`
which will create the builder, then waits till completion and kill child
process in case of errors.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24806#discussion_r2056938002