From ee93cef8aa73f801456f2231ada4971ca0a5a154 Mon Sep 17 00:00:00 2001 From: Igor Ignatyev Date: Thu, 22 Jul 2021 23:53:36 +0000 Subject: [PATCH] 8271158: runtime/handshake/HandshakeTimeoutTest.java test doesn't check exit code Reviewed-by: dcubed --- test/hotspot/jtreg/runtime/handshake/HandshakeTimeoutTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test/hotspot/jtreg/runtime/handshake/HandshakeTimeoutTest.java b/test/hotspot/jtreg/runtime/handshake/HandshakeTimeoutTest.java index e9d1ce41033..41db5c42d5b 100644 --- a/test/hotspot/jtreg/runtime/handshake/HandshakeTimeoutTest.java +++ b/test/hotspot/jtreg/runtime/handshake/HandshakeTimeoutTest.java @@ -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.