From: Paul Robinson Date: Mon, 27 Apr 2015 19:40:04 +0000 (+0000) Subject: Simplify depfile quoting test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=053d3cec62a610313125d147a209c98e0384bc91;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235908 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Frontend/dependency-gen-escaping.c b/test/Frontend/dependency-gen-escaping.c index f8adadc45b..a6da66a169 100644 --- a/test/Frontend/dependency-gen-escaping.c +++ b/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"