]> granicus.if.org Git - clang/commitdiff
Lexer: split test into separate files
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 12 Mar 2014 02:53:12 +0000 (02:53 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 12 Mar 2014 02:53:12 +0000 (02:53 +0000)
Unfortunately, XFAIL applies to the entire file.  Split the test into two
different units, enabling the proper application of XFAIL on the test which is
expected to fail on Windows.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203633 91177308-0d34-0410-b5e6-96231b3b80d8

test/Lexer/cross-windows-on-linux-default.cpp [new file with mode: 0644]
test/Lexer/cross-windows-on-linux.cpp

diff --git a/test/Lexer/cross-windows-on-linux-default.cpp b/test/Lexer/cross-windows-on-linux-default.cpp
new file mode 100644 (file)
index 0000000..520b419
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: not %clang_cc1 -fsyntax-only -fms-compatibility -triple i686-win32 %s 2>&1 \
+// RUN:   | FileCheck %s
+
+#include "Inputs\success.h"
+
+// CHECK: error: success
index 142640c165fbdbf3b90d0d0dc7038c05a8b4e9a1..0bbbd6601d39645e5defc33f0b16f2b3ae1f3863 100644 (file)
@@ -1,14 +1,12 @@
-// RUN: not %clang_cc1 -fsyntax-only -triple i686-win32 %s 2>&1 \
-// RUN:   | FileCheck %s -check-prefix CHECK-NO-COMPAT
-// XFAIL: win32
-
-// RUN: not %clang_cc1 -fsyntax-only -fms-compatibility -triple i686-win32 %s 2>&1 \
-// RUN:   | FileCheck %s -check-prefix CHECK-COMPAT
+// RUN: not %clang_cc1 -fsyntax-only -triple i686-win32 %s 2>&1 | FileCheck %s
 
 #include "Inputs\success.h"
 
-// CHECK-NO-COMPAT: error: 'Inputs\success.h' file not found
-// CHECK-NO-COMPAT: #include "Inputs\success.h"
-// CHECK-NO-COMPAT:          ^
+// CHECK: error: 'Inputs\success.h' file not found
+// CHECK: #include "Inputs\success.h"
+// CHECK:          ^
+
+// expected to fail on windows as the inclusion would success and the
+// compilation will fail due to the '#error success'
+// XFAIL: win32
 
-// CHECK-COMPAT: error: success