On 12/7/12 1:39 PM, David DeHaven wrote:

Hopefully final webrev for this change:
http://cr.openjdk.java.net/~ddehaven/8004042/webrev.3/

I moved the createBatFile method to TestHelper as I thought it could be useful 
to other tests and added more diagnostic info.

It turns out the culprit on my machine was Windows' "Application Experience" service. 
Each time the batch file is launched svchost.exe tries to access the file, if it doesn't release 
it's file locks quickly enough then when java attempts to create a new file it fails with 
AccessDeniedException. In procmon this was showing up as a "DELETE PENDING" result, 
followed by svchost.exe getting the same result at least twice then giving up. Disabling that 
service allowed me to run my filesystem tests unpatched without failing.

I don't see any other option to fix this as this is somewhat expected of 
asynchronous access in a multitasking environment. Maybe there's some means to 
synchronously delete files...

Ah, the mysteries of Windows. The test looks fine.

s'marks

Reply via email to