]> granicus.if.org Git - clang/commitdiff
tests: Use FileCheck instead of external input; I think this test was failing on
authorDaniel Dunbar <daniel@zuster.org>
Wed, 21 Jul 2010 19:40:01 +0000 (19:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 21 Jul 2010 19:40:01 +0000 (19:40 +0000)
Win32 because of line ending differences.

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

test/Lexer/Inputs/preamble.txt [deleted file]
test/Lexer/preamble.c

diff --git a/test/Lexer/Inputs/preamble.txt b/test/Lexer/Inputs/preamble.txt
deleted file mode 100644 (file)
index c5f7288..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-// Preamble detection test: see below for comments and test commands.
-
-#include <blah>
-#ifndef FOO
-#else
-#ifdef BAR
-#elif WIBBLE
-#endif
-#pragma unknown
-#endif
-
index b1f2fadd1cf3e1ba7932a8f46f307ec6d54936ab..c4f9c3ef347ef20d38f24e7102b657a31e661144 100644 (file)
@@ -1,5 +1,5 @@
 // Preamble detection test: see below for comments and test commands.
-
+//
 #include <blah>
 #ifndef FOO
 #else
@@ -21,5 +21,17 @@ int foo();
 // Inputs/preamble.txt, since we diff against it.
 
 // RUN: %clang_cc1 -print-preamble %s > %t
-// RUN: diff %t %S/Inputs/preamble.txt
+// RUN: FileCheck < %t %s
+
+// CHECK: // Preamble detection test: see below for comments and test commands.
+// CHECK-NEXT: //
+// CHECK-NEXT: #include <blah>
+// CHECK-NEXT: #ifndef FOO
+// CHECK-NEXT: #else
+// CHECK-NEXT: #ifdef BAR
+// CHECK-NEXT: #elif WIBBLE
+// CHECK-NEXT: #endif
+// CHECK-NEXT: #pragma unknown
+// CHECK-NEXT: #endif
+