Skip to content

Commit 237a540

Browse files
committedSep 11, 2024
8339801: Add better test failure diagnostics to vmTestbase/nsk/jdi/EventRequestManager/threadStartRequests/thrstartreq002
Reviewed-by: lmesnik, amenkov, kevinw
1 parent 35a94b7 commit 237a540

File tree

1 file changed

+5
-0
lines changed
  • test/hotspot/jtreg/vmTestbase/nsk/jdi/EventRequestManager/threadStartRequests

1 file changed

+5
-0
lines changed
 

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/EventRequestManager/threadStartRequests/thrstartreq002.java

+5
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ private int runThis (String argv[], PrintStream out) {
127127
log2("debuggee launched");
128128
} catch ( Exception e ) {
129129
log3("ERROR: Exception : " + e);
130+
e.printStackTrace(System.out);
130131
log2(" test cancelled");
131132
return FAILED;
132133
}
@@ -170,6 +171,7 @@ private int runThis (String argv[], PrintStream out) {
170171
vm.exit(PASS_BASE);
171172
} catch ( Exception e ) {
172173
log3("ERROR: Exception : " + e);
174+
e.printStackTrace(System.out);
173175
}
174176
break;
175177

@@ -183,6 +185,7 @@ private int runThis (String argv[], PrintStream out) {
183185
}
184186
} catch ( Exception e ) {
185187
log3("ERROR: Exception : " + e);
188+
e.printStackTrace(System.out);
186189
}
187190
break;
188191
}
@@ -211,9 +214,11 @@ private int runTest() {
211214
return 1;
212215
} catch ( VMDisconnectedException e ) {
213216
log3("ERROR: VMDisconnectedException : " + e);
217+
e.printStackTrace(System.out);
214218
return 2;
215219
} catch ( Exception e ) {
216220
log3("ERROR: Exception : " + e);
221+
e.printStackTrace(System.out);
217222
return 1;
218223
}
219224

0 commit comments

Comments
 (0)
Please sign in to comment.