summaryrefslogtreecommitdiffstats
path: root/run-core-tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2009-11-02 18:16:19 -0800
committerElliott Hughes <enh@google.com>2009-11-02 18:16:19 -0800
commitb5695226c98a08ad1dd23c6d394084ae3d251f84 (patch)
tree06938b1af474bc18d9ee0dc4148a48c0ef727f65 /run-core-tests
parent8be18649646b73d011c4d8aab802ca739dadec32 (diff)
downloadlibcore-b5695226c98a08ad1dd23c6d394084ae3d251f84.zip
libcore-b5695226c98a08ad1dd23c6d394084ae3d251f84.tar.gz
libcore-b5695226c98a08ad1dd23c6d394084ae3d251f84.tar.bz2
Ensure dalvikvm sets "user.name" to "root" for our tests.
dalvikvm sets "user.name" to $USER, but that environment variable isn't set when we run the tests. I was looking at our DatagramSocketTest failure, and it turns out it's another instance of "root can do stuff other users can't". The typical way harmony tests check whether they're running as root is to compare "user.name" against "root", but from run-core-tests they see "".
Diffstat (limited to 'run-core-tests')
-rwxr-xr-xrun-core-tests1
1 files changed, 1 insertions, 0 deletions
diff --git a/run-core-tests b/run-core-tests
index 134a032..723d36f 100755
--- a/run-core-tests
+++ b/run-core-tests
@@ -26,6 +26,7 @@ mkdir $tmp
chmod 777 $tmp
exec dalvikvm \
+ -Duser.name=root \
-Duser.language=en \
-Duser.region=US \
-Djava.io.tmpdir=$tmp \