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
// 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"