8293591: Remove use of Thread.stop from jshell tests
Reviewed-by: alanb
This commit is contained in:
parent
aff5ff14b2
commit
fbd8b42d70
@ -120,12 +120,9 @@ public class UITesting {
|
|||||||
waitOutput(out, PROMPT);
|
waitOutput(out, PROMPT);
|
||||||
test.test(inputSink, out);
|
test.test(inputSink, out);
|
||||||
} finally {
|
} finally {
|
||||||
inputSink.write(INTERRUPT + INTERRUPT + "/exit");
|
inputSink.write(INTERRUPT + INTERRUPT + "/exit\n");
|
||||||
|
|
||||||
runner.join(1000);
|
runner.join();
|
||||||
if (runner.isAlive()) {
|
|
||||||
runner.stop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user