r207810 - Use %clang_cc1 in rewrite-includes-messages.c test and drop REQUIRES: shell

Reid Kleckner reid at kleckner.net
Thu May 1 15:45:16 PDT 2014


Author: rnk
Date: Thu May  1 17:45:16 2014
New Revision: 207810

URL: http://llvm.org/viewvc/llvm-project?rev=207810&view=rev
Log:
Use %clang_cc1 in rewrite-includes-messages.c test and drop REQUIRES: shell

This test passes on Windows with lit's shell interpreter.

Modified:
    cfe/trunk/test/Frontend/rewrite-includes-messages.c

Modified: cfe/trunk/test/Frontend/rewrite-includes-messages.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-messages.c?rev=207810&r1=207809&r2=207810&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/rewrite-includes-messages.c (original)
+++ cfe/trunk/test/Frontend/rewrite-includes-messages.c Thu May  1 17:45:16 2014
@@ -1,8 +1,7 @@
-// RUN: %clang -E -frewrite-includes %s -I%S/Inputs/ | %clang -Wall -Wunused-macros -x c -c - 2>&1 | tee %t.1
-// RUN: %clang -I%S/Inputs/ -Wall -Wunused-macros -c %s 2>&1 | tee %t.2
-// RUN: diff %t.1 %t.2
+// RUN: %clang_cc1 -E -frewrite-includes %s -I%S/Inputs/ | %clang_cc1 -Wall -fsyntax-only -Wunused-macros -x c - 2>&1 > %t.1
+// RUN: %clang_cc1 -I%S/Inputs/ -Wall -Wunused-macros %s 2>&1 > %t.2
+// RUN: diff %t.1 %t.2 -u
 // expected-no-diagnostics
-// REQUIRES: shell
 
 #include "rewrite-includes-messages.h"
 #define UNUSED_MACRO





More information about the cfe-commits mailing list