diff options
author | Francois Pichet <pichet2000@gmail.com> | 2010-10-14 20:49:46 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2010-10-14 20:49:46 +0000 |
commit | ed7c308fac03da7168e167de15d231af8aed02a6 (patch) | |
tree | 0c0fde0bb03468f770203847adeeb4946f2d1812 | |
parent | e24b575f06985336973bb721e198bd184bf7bdd3 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116513 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Lexer/preamble.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/Lexer/preamble.c b/test/Lexer/preamble.c index 69cdbb7f24..7735b475e1 100644 --- a/test/Lexer/preamble.c +++ b/test/Lexer/preamble.c @@ -22,7 +22,6 @@ int foo(); // 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: // |