From 7acf4549932adde2961864023db47ebfde07440d Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 24 Feb 2011 02:39:40 +0000 Subject: [PATCH] Tweak this test a bit further to make it easier on grep. Who knows what characters get dropped into the regular expression from %t. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126361 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Frontend/dependency-gen.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/Frontend/dependency-gen.c b/test/Frontend/dependency-gen.c index c008321e5e..bad8493829 100644 --- a/test/Frontend/dependency-gen.c +++ b/test/Frontend/dependency-gen.c @@ -10,8 +10,9 @@ // PR8974 // XFAIL: win32 // RUN: rm -rf %t.dir -// RUN: mkdir %t.dir -// RUN: echo > %t.dir/x.h -// RUN: %clang -include %t.dir/x.h -MD -MF %t.d -S -x c -o %t.o %s -// RUN: grep ' %t.dir/x.h' %t.d +// RUN: mkdir -p %t.dir/a/b +// RUN: echo > %t.dir/a/b/x.h +// RUN: cd %t.dir +// RUN: %clang -include a/b/x.h -MD -MF %t.d -S -x c -o %t.o %s +// RUN: grep ' a/b/x\.h' %t.d -- 2.40.0