diff options
author | Elliott Hughes <enh@google.com> | 2009-11-02 18:16:19 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2009-11-02 18:16:19 -0800 |
commit | b5695226c98a08ad1dd23c6d394084ae3d251f84 (patch) | |
tree | 06938b1af474bc18d9ee0dc4148a48c0ef727f65 /run-core-tests | |
parent | 8be18649646b73d011c4d8aab802ca739dadec32 (diff) | |
download | libcore-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-x | run-core-tests | 1 |
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 \ |