8293591: Remove use of Thread.stop from jshell tests

Reviewed-by: alanb
This commit is contained in:
Jan Lahoda 2022-09-15 11:27:15 +00:00
parent aff5ff14b2
commit fbd8b42d70

View File

@ -120,12 +120,9 @@ public class UITesting {
waitOutput(out, PROMPT);
test.test(inputSink, out);
} finally {
inputSink.write(INTERRUPT + INTERRUPT + "/exit");
inputSink.write(INTERRUPT + INTERRUPT + "/exit\n");
runner.join(1000);
if (runner.isAlive()) {
runner.stop();
}
runner.join();
}
}