Skip to content

Commit fbd8b42

Browse files
committed
8293591: Remove use of Thread.stop from jshell tests
Reviewed-by: alanb
1 parent aff5ff1 commit fbd8b42

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/langtools/jdk/jshell/UITesting.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,9 @@ public void write(String str) throws IOException {
120120
waitOutput(out, PROMPT);
121121
test.test(inputSink, out);
122122
} finally {
123-
inputSink.write(INTERRUPT + INTERRUPT + "/exit");
123+
inputSink.write(INTERRUPT + INTERRUPT + "/exit\n");
124124

125-
runner.join(1000);
126-
if (runner.isAlive()) {
127-
runner.stop();
128-
}
125+
runner.join();
129126
}
130127
}
131128

0 commit comments

Comments
 (0)