On Tue, 8 Oct 2024 17:38:19 GMT, Damon Nguyen <[email protected]> wrote:

>> I thought we could assign returnCode like below but the test doesn't exit
>> 
>> `returnCode = DnDClipboardDeadlockTest.CODE_OK`
>
> I can make the `returnCode` var value set to `CODE_OK` by making it 
> public/static and calling `DnDClipboardDeadlockTest.returnCode = 
> DnDClipboardDeadlockTest.CODE_OK`, but the test won't exit. I can throw an 
> exception instead, but it's odd since this is supposed to pass in this 
> scenario. Still open to suggestions.

Well, the frames aren't being disposed, so the VM isn't going to exit() on its 
own.
You need to make sure that is done in both the parent and the exec'd chilld

I don't see an issue with calling System.exit(0) from the exec'ed child.
ie so long as it is ONLY from the child process, not the test launched by jtreg.
You'd need to do this if you wanted to signal any non-default condition.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21394#discussion_r1793959697

Reply via email to