commit | b5695226c98a08ad1dd23c6d394084ae3d251f84 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Nov 02 18:16:19 2009 -0800 |
committer | Elliott Hughes <enh@google.com> | Mon Nov 02 18:16:19 2009 -0800 |
tree | 06938b1af474bc18d9ee0dc4148a48c0ef727f65 | |
parent | 8be18649646b73d011c4d8aab802ca739dadec32 [diff] |
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 "".