aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-10-21 03:07:40 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-10-21 03:07:40 +0000
commit258f9a2c33b010ddeca6902012461cdd4d5f14ef (patch)
tree079162e10704d7ca98ce2c5988c9afa02239e141
parent9faf810f08132aabb34a478297dfeea89c3bbe17 (diff)
Massage this test a little so it works when run inside the Google environment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142635 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Driver/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Driver/debug.c b/test/Driver/debug.c
index 2ed8921769..66b2f0d5db 100644
--- a/test/Driver/debug.c
+++ b/test/Driver/debug.c
@@ -1,4 +1,4 @@
-// RUN: %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "'%S'"'
+// RUN: cd %S && %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "'%S'"'
// RUN: PWD=/foo %clang -### -g %s -c 2>&1 | grep '"-fdebug-compilation-dir" "/foo"'
// This test uses grep instead of FileCheck so that we get %S -> dirname