r235908 - Simplify depfile quoting test.

Paul Robinson paul_robinson at playstation.sony.com
Mon Apr 27 12:40:05 PDT 2015


Author: probinson
Date: Mon Apr 27 14:40:04 2015
New Revision: 235908

URL: http://llvm.org/viewvc/llvm-project?rev=235908&view=rev
Log:
Simplify depfile quoting test.

With -MG we don't actually need to create the files with funky names.
Also use a more sensible check-prefix for the NMAKE case.

Modified:
    cfe/trunk/test/Frontend/dependency-gen-escaping.c

Modified: cfe/trunk/test/Frontend/dependency-gen-escaping.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/dependency-gen-escaping.c?rev=235908&r1=235907&r2=235908&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/dependency-gen-escaping.c (original)
+++ cfe/trunk/test/Frontend/dependency-gen-escaping.c Mon Apr 27 14:40:04 2015
@@ -1,23 +1,16 @@
 // PR15642
-// RUN: rm -rf %t.dir
-// RUN: mkdir -p %t.dir
-// RUN: echo > '%t.dir/    .h'
-// RUN: echo > '%t.dir/$$.h'
-// RUN: echo > '%t.dir/##.h'
-// RUN: echo > '%t.dir/normal.h'
-// RUN: cd %t.dir
-// RUN: %clang -MD -MF - %s -fsyntax-only -I. | FileCheck -strict-whitespace %s
-// RUN: %clang -MD -MF - -MV %s -fsyntax-only -I. | FileCheck -strict-whitespace %s --check-prefix=QUOTE
+// RUN: %clang -M -MG %s | FileCheck -strict-whitespace %s
+// RUN: %clang -M -MG -MV %s | FileCheck -strict-whitespace %s --check-prefix=NMAKE
 
 // CHECK: \ \ \ \ .h
 // CHECK: $$$$.h
 // CHECK: \#\#.h
-// QUOTE: "    .h"
-// QUOTE: "$$.h"
-// QUOTE: "##.h"
-// QUOTE-NOT: "
-// QUOTE: normal.h
-// QUOTE-NOT: "
+// NMAKE: "    .h"
+// NMAKE: "$$.h"
+// NMAKE: "##.h"
+// NMAKE-NOT: "
+// NMAKE: normal.h
+// NMAKE-NOT: "
 
 #include "    .h"
 #include "$$.h"





More information about the cfe-commits mailing list