Skip to content

Commit

Permalink
8289400: Improve com/sun/jdi/TestScaffold error reporting
Browse files Browse the repository at this point in the history
Backport-of: da99e3e8299f3a476603aa43a99164c2c01adff4
  • Loading branch information
GoeLin committed Feb 2, 2023
1 parent c74eb2b commit 012a216
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/jdk/com/sun/jdi/TestScaffold.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ protected void traceln(String str) {

protected void failure(String str) {
println(str);
StackTraceElement[] trace = Thread.currentThread().getStackTrace();
for (StackTraceElement traceElement : trace) {
System.err.println("\tat " + traceElement);
}
testFailed = true;
}

Expand Down

1 comment on commit 012a216

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.