[cfe-dev] Windows Lit problems again. What should we do?

Argyrios Kyrtzidis kyrtzidis at apple.com
Sun Sep 19 03:07:39 PDT 2010


On Sep 19, 2010, at 7:32 AM, Francois Pichet wrote:

> 1// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -o %t %s
> 2// RUN: FileCheck --check-prefix CHECK-FRAGILE < %t %s
> 
> 3// RUN: %clang_cc1 -triple x86_64-apple-darwin10
> -fobjc-nonfragile-abi -emit-llvm -o %t %s
> 4// RUN: FileCheck --check-prefix CHECK-NONFRAGILE < %t %s
> 
> The reason is that when "FileCheck < %t %s" is called (line 2), the
> lifetime of the handle to file "%t" is controlled by Windows. We don't
> know exactly when it is released.
> Then clang is called again (line 3) and because of revision 114187,
> the clang frontend try to move a file to "%t" but Windows refuses
> because the handle from the previous < redirection (line 2) is not
> released.

Wait, we can create a new %t (before r114187) but not move a file to it ?
Can you try the attached move_fix1.diff and, if it doesn't work, move_fix2.diff ?

-Argiris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: move_fix1.diff
Type: application/octet-stream
Size: 585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100919/89a6e33b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: move_fix2.diff
Type: application/octet-stream
Size: 700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100919/89a6e33b/attachment-0001.obj>
-------------- next part --------------



More information about the cfe-dev mailing list