RFR: 8005202 - java/util/logging/CheckLockLocationTest.java fail on solars_10

Daniel Fuchs daniel.fuchs at oracle.com
Tue Nov 19 19:35:37 UTC 2013


Please find below a fix for:

8005202 - java/util/logging/CheckLockLocationTest.java fail on solars_10

This bug complains that java/util/logging/CheckLockLocationTest.java
has been seen failing on a solaris 10 machine, with message:

java.lang.RuntimeException: Test failed: should not have been able to 
create FileHandler for %t/non-writable-dir/log.log in non-writable 
at CheckLockLocationTest.runTests(CheckLockLocationTest.java:84)
at CheckLockLocationTest.main(CheckLockLocationTest.java:57)

I have no idea why this test failed as I have never seen it
failing myself. I suspect however that for some reason the
'non-writable-dir' that the test attempted to create was in
fact writable.

I am therefore proposing to add an additional check in the test's
setUp() method, in order to verify that the directory is indeed
not writable.


caveat: I haven't tested my changes on Solaris yet, but I will
         do so before pushing :-)

-- daniel

More information about the core-libs-dev mailing list