Hi,

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 directory.
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.

webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8005202/webrev.00/

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

-- daniel

Reply via email to