TimeoutDefaultSecondsWaiter asserts 'Timeout signalled after X seconds', but the timeout handler can run `victim.interrupt()`.
that can produce the following output `result: Error. Program `/usr/lib/jvm/java-21-openjdk-amd64/bin/javac' interrupted`[1].
We may either remove interrupt() call altogether or replace it with process.waitFor(timeout)
[1] https://github.com/openjdk/jtreg/blob/34ccc66ec89651637811678a17d3f810b4ac0780/src/share/classes/com/sun/javatest/regtest/exec/ProcessCommand.java#L289
that can produce the following output `result: Error. Program `/usr/lib/jvm/java-21-openjdk-amd64/bin/javac' interrupted`[1].
We may either remove interrupt() call altogether or replace it with process.waitFor(timeout)
[1] https://github.com/openjdk/jtreg/blob/34ccc66ec89651637811678a17d3f810b4ac0780/src/share/classes/com/sun/javatest/regtest/exec/ProcessCommand.java#L289
- links to
-
Review(master)
openjdk/jtreg/296