summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorPaul Robinson <paul_robinson@playstation.sony.com>2015-04-27 19:40:04 +0000
committerPaul Robinson <paul_robinson@playstation.sony.com>2015-04-27 19:40:04 +0000
commitd101ca21e613a3fa326e11ef7d1c7e8b642a6604 (patch)
treeebce4415a7764ee178a4c69b3c6278828727ee1a /clang
parentfa62ad40872b0d85f9b9a55f0b806c910edab257 (diff)
downloadbcm5719-llvm-d101ca21e613a3fa326e11ef7d1c7e8b642a6604.tar.gz
bcm5719-llvm-d101ca21e613a3fa326e11ef7d1c7e8b642a6604.zip
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. llvm-svn: 235908
Diffstat (limited to 'clang')
-rw-r--r--clang/test/Frontend/dependency-gen-escaping.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/clang/test/Frontend/dependency-gen-escaping.c b/clang/test/Frontend/dependency-gen-escaping.c
index f8adadc45bf..a6da66a169a 100644
--- a/clang/test/Frontend/dependency-gen-escaping.c
+++ b/clang/test/Frontend/dependency-gen-escaping.c
@@ -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"
OpenPOWER on IntegriCloud