[9] RFR (XXS): 8035186: j2se_jdk/jdk/test/java/lang/invoke/lambda/LogGeneratedClassesTest.java - assertion error

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Tue May 27 13:53:05 UTC 2014


Paul,

What you suggest is much cleaner. Thanks!

Updated version:
http://cr.openjdk.java.net/~vlivanov/8035186/webrev.01/

Best regards,
Vladimir Ivanov

On 5/27/14 5:35 PM, Paul Sandoz wrote:
> Hi,
>
> I am wondering if it may be more reliable to attempt creation of a new file in the read only directory rather than checking for the "root" user name?
>
> Paul.
>
> On May 27, 2014, at 3:19 PM, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
>
>> https://bugs.openjdk.java.net/browse/JDK-8035186
>> http://cr.openjdk.java.net/~vlivanov/8035186/webrev.00/
>>
>> LogGeneratedClassesTest.testDumpDirNotWritable is not applicable when it is run by super user on Linux/Solaris. The test checks that it's forbidden to create files in read-only directory, but super user is allowed to do so.
>>
>> The fix is to skip the test in such configuration.
>>
>> Testing: ran the test by super user on Solaris/Linux.
>>
>> Best regards,
>> Vladimir Ivanov
>



More information about the core-libs-dev mailing list