8271158: runtime/handshake/HandshakeTimeoutTest.java test doesn't check exit code

Reviewed-by: dcubed
(cherry picked from commit ee93cef8aa)
This commit is contained in:
Igor Ignatyev
2021-07-22 23:53:36 +00:00
committed by Vitaly Provodin
parent 658dff0901
commit cdeb52b3e6

View File

@@ -57,6 +57,7 @@ public class HandshakeTimeoutTest {
"HandshakeTimeoutTest$Test");
OutputAnalyzer output = ProcessTools.executeProcess(pb);
output.shouldNotHaveExitValue(0);
output.reportDiagnosticSummary();
// In rare cases the target wakes up and performs the handshake at the same time as we timeout.
// Therefore it's not certain the timeout will find any thread.