summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/run-jdwp-tests.sh8
-rwxr-xr-xtools/run-libjdwp-tests.sh11
2 files changed, 19 insertions, 0 deletions
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh
index f5fbcd8def..6a846aee17 100755
--- a/tools/run-jdwp-tests.sh
+++ b/tools/run-jdwp-tests.sh
@@ -96,6 +96,14 @@ while true; do
# We don't care about jit with the RI
use_jit=false
shift
+ elif [[ $1 == --test-timeout-ms ]]; then
+ # Remove the --test-timeout-ms from the arguments.
+ args=${args/$1}
+ shift
+ jdwp_test_timeout=$1
+ # Remove the argument
+ args=${args/$1}
+ shift
elif [[ $1 == --agent-wrapper ]]; then
# Remove the --agent-wrapper from the arguments.
args=${args/$1}
diff --git a/tools/run-libjdwp-tests.sh b/tools/run-libjdwp-tests.sh
index 964bb386ef..47e7c4595d 100755
--- a/tools/run-libjdwp-tests.sh
+++ b/tools/run-libjdwp-tests.sh
@@ -29,11 +29,16 @@ debug="no"
has_variant="no"
has_mode="no"
mode="target"
+has_timeout="no"
while true; do
if [[ $1 == "--debug" ]]; then
debug="yes"
shift
+ elif [[ $1 == --test-timeout-ms ]]; then
+ has_timeout="yes"
+ shift
+ shift
elif [[ "$1" == "--mode=jvm" ]]; then
has_mode="yes"
mode="ri"
@@ -60,6 +65,12 @@ if [[ "$has_variant" = "no" ]]; then
args+=(--variant=X32)
fi
+if [[ "$has_timeout" = "no" ]]; then
+ # Double the timeout to 20 seconds
+ args+=(--test-timeout-ms)
+ args+=(20000)
+fi
+
# We don't use full paths since it is difficult to determine them for device
# tests and not needed due to resolution rules of dlopen.
if [[ "$debug" = "yes" ]]; then