[cfe-commits] r116513 - /cfe/trunk/test/Lexer/preamble.c

Francois Pichet pichet2000 at gmail.com
Thu Oct 14 13:49:46 PDT 2010


Author: fpichet
Date: Thu Oct 14 15:49:46 2010
New Revision: 116513

URL: http://llvm.org/viewvc/llvm-project?rev=116513&view=rev
Log:
r116509 fixed the Win32 XFAIL.

The failing was due to this:
1. preamble.c contains CR+LF new lines
2. write() is called with a buffer containing the original (CR+LF) to output the result on the console.
3. In text mode(the default), write() convert LF to CR+LF even if LF is preceded by CR, hence we have CR+CR+LF which filecheck interprets as 2 lines.


Modified:
    cfe/trunk/test/Lexer/preamble.c

Modified: cfe/trunk/test/Lexer/preamble.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/preamble.c?rev=116513&r1=116512&r2=116513&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/preamble.c (original)
+++ cfe/trunk/test/Lexer/preamble.c Thu Oct 14 15:49:46 2010
@@ -22,7 +22,6 @@
 // RUN: %clang_cc1 -print-preamble %s > %t
 // RUN: echo END. >> %t
 // RUN: FileCheck < %t %s
-// XFAIL: win32
 
 // CHECK: // Preamble detection test: see below for comments and test commands.
 // CHECK-NEXT: //





More information about the cfe-commits mailing list