]> granicus.if.org Git - clang/commitdiff
Simplify depfile quoting test.
authorPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 27 Apr 2015 19:40:04 +0000 (19:40 +0000)
committerPaul Robinson <paul_robinson@playstation.sony.com>
Mon, 27 Apr 2015 19:40:04 +0000 (19:40 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235908 91177308-0d34-0410-b5e6-96231b3b80d8

test/Frontend/dependency-gen-escaping.c

index f8adadc45bf9cc59908b0c617a8de004ec834982..a6da66a169a90cdd228e46e22d6df581b61986d9 100644 (file)
@@ -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"