[PATCH] Windows hang with long filename

Robinson, Paul Paul.Robinson at am.sony.com
Wed Mar 13 13:25:35 PDT 2013


> -----Original Message-----
> From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-
> bounces at cs.uiuc.edu] On Behalf Of Duncan Sands
> Sent: Wednesday, March 13, 2013 2:31 AM
> To: llvm-commits at cs.uiuc.edu
> Subject: Re: [PATCH] Windows hang with long filename
> 
> Hi Paul,
> 
> On 12/03/13 22:33, Robinson, Paul wrote:
> > This is basically the Windows version of r176226; it avoids a
> > hang when certain issues arise with an output filename.
> > We found this because Clang would hang because the output file
> > pathname exceeded the Windows limit of 260 characters.
> > Yes, I know the context around the fix is about creating the
> > parent directory; but that's the loop where the hang occurs.
> >
> > Murphy consequence #1:  I could not find any LLVM tool that used
> > unique_file(), only Clang uses this AFAICT.  So the test is written
> > for Clang, which means it has to go in the Clang suite instead of
> > the LLVM suite.
> 
> can't you write an LLVM unit test for it (see the llvm/unittests
> directory)?
> 
> Ciao, Duncan.

Ha, didn't think of that.  How does this look?
(Please commit for me if okay.)
Thanks,
--paulr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: WinPath-unittest.diff
Type: application/octet-stream
Size: 938 bytes
Desc: WinPath-unittest.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130313/876ddfec/attachment.obj>


More information about the llvm-commits mailing list