diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-10 01:40:10 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-10 01:40:10 +0000 |
commit | a2148240bd94ef659a9195b87e9cd0023536c01f (patch) | |
tree | 7e029cf5a0228b81edd3fd8986122f3a25fe33e7 /test/Tooling | |
parent | ad3273be3cd7dd465d38d43aedbf069f7770bb92 (diff) |
Simplify now that llvm::sys::current_path checks $PWD.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Tooling')
-rw-r--r-- | test/Tooling/auto-detect-from-source-parent-of-cwd.cpp | 4 | ||||
-rw-r--r-- | test/Tooling/clang-check-pwd.cpp | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp b/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp index f8b0bc9e27..d7ec3f60ac 100644 --- a/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp +++ b/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp @@ -2,11 +2,15 @@ // 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: ln -sf %t/abc/def %t/abc/def2 +// RUN: cd %t/abc/def2 // RUN: not env PWD="%t/abc/def" clang-check "ijk/qwe/test.cpp" 2>&1 | FileCheck %s // CHECK: C++ requires +// CHECK: /abc/def/ijk/qwe/test.cpp invalid; // REQUIRES: shell // PR15590 // XFAIL: win64 +// XFAIL: mingw diff --git a/test/Tooling/clang-check-pwd.cpp b/test/Tooling/clang-check-pwd.cpp index 1c5a6ab70e..d85b9b1ae4 100644 --- a/test/Tooling/clang-check-pwd.cpp +++ b/test/Tooling/clang-check-pwd.cpp @@ -2,12 +2,16 @@ // RUN: mkdir %t // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json // RUN: cp "%s" "%t/test.cpp" -// RUN: not env PWD="%t" clang-check -p "%t" "test.cpp" 2>&1|FileCheck %s +// RUN: ln -sf %t %t.foobar +// RUN: cd %t +// RUN: not env PWD="%t.foobar" clang-check -p "%t" "test.cpp" 2>&1|FileCheck %s // FIXME: Make the above easier. // CHECK: C++ requires +// CHECK: .foobar/test.cpp invalid; // REQUIRES: shell // PR15590 // XFAIL: win64 +// XFAIL: mingw |