On Wed, 9 Oct 2024 18:18:21 GMT, Phil Race <[email protected]> wrote: >> 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.
@prrace Could you elaborate on what needs to be done in the parent and exec'd child? I'm not sure I quite understand. Do you want me to add `frame.dispose()` to both the parent and child processes? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/21394#discussion_r1794056631
