File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ private static void runTest(String jdwpArg) throws Exception {
84
84
try {
85
85
p = pb .start ();
86
86
InputStream is = p .getInputStream ();
87
+
88
+ // Read the first character of output to make sure we've waited until the
89
+ // debuggee is ready. This will be the debug agent's "Listening..." message.
90
+ char firstChar = (char )is .read ();
91
+
87
92
out = new OutputAnalyzer (p );
88
93
89
94
// Attach a debugger and do the data dump. The data dump output will appear
@@ -92,8 +97,8 @@ private static void runTest(String jdwpArg) throws Exception {
92
97
93
98
out .waitFor (); // Wait for the debuggee to exit
94
99
95
- System .out .println ("Deuggee output:" );
96
- System .out .println (out .getOutput ());
100
+ System .out .println ("Debuggee output:" );
101
+ System .out .println (firstChar + out .getOutput ());
97
102
98
103
// All these strings are part of the debug agent data dump output.
99
104
out .shouldHaveExitValue (0 );
You can’t perform that action at this time.
0 commit comments