summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-04-24 12:41:29 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-24 12:41:29 +0000
commit69f8fc656f04661f9c32176ebfd093e42bae53d4 (patch)
tree891816542c862ce37b69b4e8f5e7d4c6f95595bd
parent2b7e589a8ea095392e97d45f1feb04832bada21c (diff)
parent54d3b9369fe3d02ce573acdc703b694e7292704e (diff)
downloadlibcore-69f8fc656f04661f9c32176ebfd093e42bae53d4.zip
libcore-69f8fc656f04661f9c32176ebfd093e42bae53d4.tar.gz
libcore-69f8fc656f04661f9c32176ebfd093e42bae53d4.tar.bz2
Merge "Use ANDROID_ROOT instead of assuming it is /system."
-rw-r--r--luni/src/test/java/libcore/java/lang/ProcessBuilderTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/test/java/libcore/java/lang/ProcessBuilderTest.java b/luni/src/test/java/libcore/java/lang/ProcessBuilderTest.java
index 9766cef..51aed38 100644
--- a/luni/src/test/java/libcore/java/lang/ProcessBuilderTest.java
+++ b/luni/src/test/java/libcore/java/lang/ProcessBuilderTest.java
@@ -28,7 +28,7 @@ import static tests.support.Support_Exec.execAndCheckOutput;
public class ProcessBuilderTest extends AbstractResourceLeakageDetectorTestCase {
private static String shell() {
- String deviceSh = "/system/bin/sh";
+ String deviceSh = System.getenv("ANDROID_ROOT") + "/bin/sh";
String desktopSh = "/bin/sh";
return new File(deviceSh).exists() ? deviceSh : desktopSh;
}