r239402 - Remove rm invocations where the file is immediately rewritten later.

Greg Bedwell gregbedwell at gmail.com
Tue Jun 9 09:02:19 PDT 2015


>
>
> Remove rm invocations where the file is immediately rewritten later.
>
> This may or may not help making this test less flaky on windows. There's
> a race condition in lit somewhere.
>
>
I've always assumed that this is just Windows holding onto the file for too
long, possibly exacerbated by the presence of AV software, rather than an
issue with lit itself although I'm just wildly speculating based on
previous experience with this sort of thing.  I'm still hitting this
failure on my machine occasionally today after this commit although I'll
have to use it for a few days more before deciding whether it reduces the
frequency of the failure or not.

If it really is just a Windows thing rather than a lit thing I'm not sure
what we'd be able to do beyond something like having lit intercept calls to
rm and perform some sort of retry method for permission errors on Windows.
I'm pretty sure that will work, but it's extremely nasty, and if the
problem is more heinous than just Windows holding onto files it's not a
real fix either.

Thanks for having looked at this either way though!  It's a relief to know
it's not just me that keeps running into this one.

-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150609/3fd438d0/attachment.html>


More information about the cfe-commits mailing list