From: Daniel Dunbar Date: Thu, 22 Jul 2010 02:22:24 +0000 (+0000) Subject: tests: Make FileCheck version check that preamble isn't longer than we expected. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a570b45480ce068ff243801b72ea605fe7c9fd3;p=clang tests: Make FileCheck version check that preamble isn't longer than we expected. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109077 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Lexer/preamble.c b/test/Lexer/preamble.c index 68b1d21ef0..69cdbb7f24 100644 --- a/test/Lexer/preamble.c +++ b/test/Lexer/preamble.c @@ -8,7 +8,6 @@ #endif #pragma unknown #endif - #ifdef WIBBLE #include "honk" #else @@ -21,6 +20,7 @@ int foo(); // Inputs/preamble.txt, since we diff against it. // RUN: %clang_cc1 -print-preamble %s > %t +// RUN: echo END. >> %t // RUN: FileCheck < %t %s // XFAIL: win32 @@ -34,5 +34,4 @@ int foo(); // CHECK-NEXT: #endif // CHECK-NEXT: #pragma unknown // CHECK-NEXT: #endif - - +// CHECK-NEXT: END.