OSDN Git Service

Experiment with ulimit settings to see if it fixes test failure.
authorRichard Uhler <ruhler@google.com>
Tue, 7 Mar 2017 13:53:32 +0000 (13:53 +0000)
committerRichard Uhler <ruhler@google.com>
Wed, 8 Mar 2017 09:44:18 +0000 (09:44 +0000)
RELOCATE test is failing on a build bot with file size limit exceeded.
The suspicion is ANDROID_HOST_OUT is being set oddly on the build bot so
we don't find the right directory to use as the basis for setting the
ulimit on RELOCATE and end up with much too small a limit.

Test: test-art-host
Change-Id: I18bc6cf1888a4831a313aaaba6fab4f689825284

test/etc/run-test-jar

index 0ac5481..3f2e3c8 100755 (executable)
@@ -455,11 +455,12 @@ if [ "$RELOCATE" = "y" ]; then
 else
     FLAGS="$FLAGS -Xnorelocate"
     COMPILE_FLAGS="${COMPILE_FLAGS} --runtime-arg -Xnorelocate"
-    if [ "$HOST" = "y" ]; then
-        # Increase ulimit to 128MB in case we are running hprof test,
-        # or string append test with art-debug-gc.
-        ulimit -S 128000 || exit 1
-    fi
+fi
+
+if [ "$HOST" = "y" ]; then
+    # Increase ulimit to 128MB in case we are running hprof test,
+    # or string append test with art-debug-gc.
+    ulimit -S 128000 || exit 1
 fi
 
 if [ "$HOST" = "n" ]; then