RFR: JDK-7065902 - (file) test/java/nio/file/Files/Misc.java fails on Solaris 11 when run as root
Alan.Bateman at oracle.com
Thu Nov 21 20:22:44 UTC 2013
On 21/11/2013 19:29, Dan Xu wrote:
> Hi All,
> Please review the simple fix towards
> test/java/nio/file/Files/Misc.java. It only fails when it is run by
> root. As Alan commented in the bug, the root has all permissions, so
> the test assumptions are wrong. Thanks!
> Bug: https://bugs.openjdk.java.net/browse/JDK-7065902
> Webrev: http://cr.openjdk.java.net/~dxu/7065902/webrev/
This looks okay although it's possible for users other than root to be a
superuser. I think we have at least one other test that checks if
/etc/passwd is writable as a crude indication as to whether the test is
being run by root or not.
More information about the core-libs-dev