Skip to content

Commit

Permalink
Include more info in exception used in vitals tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelter-sap committed Jan 10, 2024
1 parent 00de496 commit f54e300
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/hotspot/jtreg/runtime/Vitals/VitalsUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ static int matchPatterns(String[] lines, int startAtLine, String[] regexes) {
nLine ++;
}
if (nextToMatch < regexes.length) {
throw new RuntimeException("Not all matches found. First missing pattern " + nextToMatch + ":" + regexes[nextToMatch]);
throw new RuntimeException("Not all matches found. First missing pattern " + nextToMatch + ":" + regexes[nextToMatch] +
"\nOutput: " + String.join("\n", lines));
}
return nLine;
}
Expand Down

0 comments on commit f54e300

Please sign in to comment.