summaryrefslogtreecommitdiffstats
path: root/clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-05-15 01:45:37 +0000
committerJordan Rose <jordan_rose@apple.com>2013-05-15 01:45:37 +0000
commit4fec90371753ccffcbd0f65d2918a9b0233c0049 (patch)
treeb135e6e02751dfa0ce0c766cb2202b3d153a27a1 /clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp
parent2d920477a4164a421e0a70f68b1354f040b92d92 (diff)
downloadbcm5719-llvm-4fec90371753ccffcbd0f65d2918a9b0233c0049.tar.gz
bcm5719-llvm-4fec90371753ccffcbd0f65d2918a9b0233c0049.zip
Use 'env' in tests that set environment variables.
Patch by David Fang! llvm-svn: 181861
Diffstat (limited to 'clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp')
-rw-r--r--clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp b/clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp
index 6b632b0a0d8..b1778a65e71 100644
--- a/clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp
+++ b/clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp
@@ -2,7 +2,7 @@
// RUN: mkdir -p %t/abc/def/ijk/qwe
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/abc/def/ijk/qwe/test.cpp\",\"file\":\"%t/abc/def/ijk/qwe/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
// RUN: cp "%s" "%t/abc/def/ijk/qwe/test.cpp"
-// RUN: PWD="%t/abc/def" clang-check "ijk/qwe/test.cpp" 2>&1 | FileCheck %s
+// RUN: env PWD="%t/abc/def" clang-check "ijk/qwe/test.cpp" 2>&1 | FileCheck %s
// CHECK: C++ requires
invalid;
OpenPOWER on IntegriCloud