From 6594e9ed4071f2267b75d6629317a7a27eedf404 Mon Sep 17 00:00:00 2001 From: Staffan Larsen Date: Mon, 24 Oct 2016 09:12:40 +0200 Subject: [PATCH] 8168414: Various timeouthandler fixes Reviewed-by: mlarsson --- test/failure_handler/Makefile | 3 +- .../failurehandler/action/ActionHelper.java | 40 ++++++++++--------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/test/failure_handler/Makefile b/test/failure_handler/Makefile index 49352cbc76..d8c71964bd 100644 --- a/test/failure_handler/Makefile +++ b/test/failure_handler/Makefile @@ -86,7 +86,7 @@ classes: require_env test: require_env build rm -rf "${RUN_DIR}" mkdir -p "${RUN_DIR}" - "${JTREG_HOME}"/bin/jtreg \ + "${JTREG_HOME}"/bin/jtreg \ -jdk:"${JAVA_HOME}" \ ${JTREG_TEST_OPTS} \ -timeout:0.1 -va -retain:all \ @@ -94,6 +94,7 @@ test: require_env build -agentvm \ -thd:"${TARGET_JAR}" \ -th:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler \ + -thtimeout:0 \ -od:"${TARGET_JAR}" \ -o:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver \ -w:"${RUN_DIR}/JTwork" \ diff --git a/test/failure_handler/src/share/classes/jdk/test/failurehandler/action/ActionHelper.java b/test/failure_handler/src/share/classes/jdk/test/failurehandler/action/ActionHelper.java index 6a8ae037ea..8b2d2757ce 100644 --- a/test/failure_handler/src/share/classes/jdk/test/failurehandler/action/ActionHelper.java +++ b/test/failure_handler/src/share/classes/jdk/test/failurehandler/action/ActionHelper.java @@ -164,7 +164,8 @@ public class ActionHelper { Stopwatch stopwatch = new Stopwatch(); stopwatch.start(); - log.printf("%s%n[%tF %