changeset 14133:5a553039e9fc

8151887: com/sun/jdi/RedefineClearBreakpoint.sh failed with timeout Summary: Take timeout factor into account Reviewed-by: dsamersoff
author sla
date Tue, 22 Mar 2016 19:29:25 +0100
parents 645a9be6eddb
children a1ff2f35dcc6
files test/com/sun/jdi/ShellScaffold.sh
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/com/sun/jdi/ShellScaffold.sh	Tue Mar 22 01:13:06 2016 -0700
+++ b/test/com/sun/jdi/ShellScaffold.sh	Tue Mar 22 19:29:25 2016 +0100
@@ -131,6 +131,9 @@
 
 # This can be increased if timing seems to be an issue.
 sleep_seconds=1
+if [ -n "$TIMEOUT_FACTOR" ] ; then
+  sleep_seconds=$(echo $TIMEOUT_FACTOR $sleep_seconds | awk '{printf "%d\n", int($1 * $2)}')
+fi
 
 echo "ShellScaffold.sh: Version" >& 2
 topPid=$$