]> granicus.if.org Git - clang/commitdiff
Desensitize env-include-paths.c to the directory it is running in.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 4 Oct 2008 21:05:04 +0000 (21:05 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 4 Oct 2008 21:05:04 +0000 (21:05 +0000)
 - It would probably be better if TestRunner.sh canonicalized this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57075 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/env-include-paths.c

index 91ca48070c66ae089696e9585178f82068ce5007..ced24311c0099d370d3ff85fd2a8356dea5c1d77 100644 (file)
@@ -1,6 +1,7 @@
 // RUN: clang -fsyntax-only -verify -DAS_SOURCE %s &&
 // RUN: env CPATH="" clang -fsyntax-only -verify -DAS_SOURCE %s &&
 // RUN: env CPATH="xyz:xyz" clang -fsyntax-only -verify -DAS_SOURCE %s &&
+// RUN: cd $(dirname %s) &&
 // RUN: env CPATH="xyz::xyz" clang -fsyntax-only -verify -DSHOULD_FIND -DAS_SOURCE %s &&
 // RUN: env CPATH="../Driver" clang -fsyntax-only -verify -DSHOULD_FIND -DAS_SOURCE %s