On Wed, 20 Sep 2023 03:56:28 GMT, Leonid Mesnik <[email protected]> wrote:
> Test start failing because of unexpected VM logging.
> The fix is to search expected string ignoring any unknown output from forked
> process.
> Tested with tier1 and by running test with various options used in CI.
Can't you just change the loop:
while ((pidstring = largeHeapScanner.findInLine("PID\[[0-9].*\]")) == null) {
Thread.sleep(500);
}
to something like:
while ((pidstring = largeHeapScanner.findInLine("PID\[[0-9].*\]")) == null) {
largeHeapScanner.nextLine();
}
to check each line of output until there is a match?
-------------
PR Review: https://git.openjdk.org/jdk/pull/15833#pullrequestreview-1634627796