[cfe-commits] r84466 - /cfe/trunk/test/Misc/message-length.c

Chris Lattner sabre at nondot.org
Sun Oct 18 23:45:50 PDT 2009


Author: lattner
Date: Mon Oct 19 01:45:49 2009
New Revision: 84466

URL: http://llvm.org/viewvc/llvm-project?rev=84466&view=rev
Log:
convert this to FileCheck, PR5232

Modified:
    cfe/trunk/test/Misc/message-length.c

Modified: cfe/trunk/test/Misc/message-length.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/message-length.c?rev=84466&r1=84465&r2=84466&view=diff

==============================================================================
--- cfe/trunk/test/Misc/message-length.c (original)
+++ cfe/trunk/test/Misc/message-length.c Mon Oct 19 01:45:49 2009
@@ -1,14 +1,7 @@
-// RUN: clang -fsyntax-only -fmessage-length=72 %s 2> %t &&
-
-// RUN: grep -A4 "FILE:23" %t > %t.msg &&
-// FIXME: This diagnostic is getting truncated very poorly.
-// RUN: grep -e '^  ...// some long comment text and a brace, eh {} ' %t.msg &&
-// RUN: grep -e '^                                                 \^' %t.msg &&
-// RUN: clang -fsyntax-only -fmessage-length=1 %s &&
-// RUN: true
+// RUN: clang -fsyntax-only -fmessage-length=72 %s 2>&1 | tee /tmp/out.txt | FileCheck -strict-whitespace %s &&
+// RUN: clang -fsyntax-only -fmessage-length=1 %s
 
 // Hack so we can check things better, force the file name and line.
-
 # 1 "FILE" 1
 
 /* It's tough to verify the results of this test mechanically, since
@@ -33,3 +26,7 @@
 }
 
 #pragma STDC CX_LIMITED_RANGE    // some long comment text and a brace, eh {}
+
+
+// CHECK: FILE:23:78
+// CHECK: {{^  ...some long comment text and a brace, eh {} $}}





More information about the cfe-commits mailing list