summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-07-21 19:40:01 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-07-21 19:40:01 +0000
commitcb08212fd57423809182f708ed707d272c02dbc5 (patch)
treee0076d70e770c6479beec262eef65553a0151492
parent093cb79d4bcbe3cb8fd0bda40137e2c9415b67f1 (diff)
downloadbcm5719-llvm-cb08212fd57423809182f708ed707d272c02dbc5.tar.gz
bcm5719-llvm-cb08212fd57423809182f708ed707d272c02dbc5.zip
tests: Use FileCheck instead of external input; I think this test was failing on
Win32 because of line ending differences. llvm-svn: 109029
-rw-r--r--clang/test/Lexer/Inputs/preamble.txt11
-rw-r--r--clang/test/Lexer/preamble.c16
2 files changed, 14 insertions, 13 deletions
diff --git a/clang/test/Lexer/Inputs/preamble.txt b/clang/test/Lexer/Inputs/preamble.txt
deleted file mode 100644
index c5f7288fa5e..00000000000
--- a/clang/test/Lexer/Inputs/preamble.txt
+++ /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
-
diff --git a/clang/test/Lexer/preamble.c b/clang/test/Lexer/preamble.c
index b1f2fadd1cf..c4f9c3ef347 100644
--- a/clang/test/Lexer/preamble.c
+++ b/clang/test/Lexer/preamble.c
@@ -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
+
OpenPOWER on IntegriCloud