OSDN Git Service

run-test: ThreadSuspendTimeout only applies to ART.
authorNarayan Kamath <narayan@google.com>
Tue, 24 Jan 2017 17:40:47 +0000 (17:40 +0000)
committerNarayan Kamath <narayan@google.com>
Tue, 24 Jan 2017 17:41:43 +0000 (17:41 +0000)
Test: art/test/run-test --jvm works
Test: art/test/run-test --host works
Change-Id: I58f10b6c7b19df0827e108d2da89d873582bafbe

test/run-test

index c78fa35..a228789 100755 (executable)
@@ -408,7 +408,9 @@ tmp_dir="`cd $oldwd ; python -c "import os; print os.path.realpath('$tmp_dir')"`
 mkdir -p $tmp_dir
 
 # Add thread suspend timeout flag
-run_args="${run_args} --runtime-option -XX:ThreadSuspendTimeout=$suspend_timeout"
+if [ ! "$runtime" = "jvm" ]; then
+  run_args="${run_args} --runtime-option -XX:ThreadSuspendTimeout=$suspend_timeout"
+fi
 
 if [ "$basic_verify" = "true" ]; then
   # Set HspaceCompactForOOMMinIntervalMs to zero to run hspace compaction for OOM more frequently in tests.