summaryrefslogtreecommitdiffstats
path: root/test/etc
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2014-09-08 21:37:39 -0700
committerBrian Carlstrom <bdc@google.com>2014-09-08 21:50:20 -0700
commitc580e04a861699d8a359e4464905b81d9cf5b926 (patch)
tree8a5640e540bf03c2fbcf6df72a898eafdd93fb18 /test/etc
parent165542588f5b8851d681a901580a277196d752d4 (diff)
downloadart-c580e04a861699d8a359e4464905b81d9cf5b926.zip
art-c580e04a861699d8a359e4464905b81d9cf5b926.tar.gz
art-c580e04a861699d8a359e4464905b81d9cf5b926.tar.bz2
Fix darwin run-test problems
Bug: 17428908 (cherry picked from commit 8a4064e2c0987637b11afcc656478d3113d81618) Change-Id: Ica403bef3e7d93bf6e9197c44b77e39683e04d55
Diffstat (limited to 'test/etc')
-rwxr-xr-xtest/etc/host-run-test-jar4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/etc/host-run-test-jar b/test/etc/host-run-test-jar
index 4485590..49aa912 100755
--- a/test/etc/host-run-test-jar
+++ b/test/etc/host-run-test-jar
@@ -182,7 +182,9 @@ if [ "$RELOCATE" = "y" ]; then
# since we are relocating. Get the total size of the /system/framework directory
# in 512 byte blocks and set it as the ulimit. This should be more than enough
# room.
- ulimit -S $(du -c -B512 ${ANDROID_ROOT}/framework | tail -1 | cut -f1) || exit 1
+ if [ ! `uname` = "Darwin" ]; then # TODO: Darwin doesn't support "du -B..."
+ ulimit -S $(du -c -B512 ${ANDROID_ROOT}/framework | tail -1 | cut -f1) || exit 1
+ fi
else
FLAGS="${FLAGS} -Xnorelocate"
COMPILER_FLAGS="${COMPILER_FLAGS} --runtime-arg -Xnorelocate --no-include-patch-information"