diff options
| author | Manuel Klimek <klimek@google.com> | 2012-04-09 19:10:04 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2012-04-09 19:10:04 +0000 |
| commit | 35fa2655dd2b667836847c5e0305ba99fd315551 (patch) | |
| tree | 7fbf6f73e34bf193d923cd38cb2d4540d0629e85 /clang/test/Tooling/clang-check-pwd.cpp | |
| parent | 0568407543367845eb0120514a995bf98ec07260 (diff) | |
| download | bcm5719-llvm-35fa2655dd2b667836847c5e0305ba99fd315551.tar.gz bcm5719-llvm-35fa2655dd2b667836847c5e0305ba99fd315551.zip | |
Implementing a test for the use of PWD to base finding the
correct compile commands on, based on an idea by Jordan Rose.
llvm-svn: 154335
Diffstat (limited to 'clang/test/Tooling/clang-check-pwd.cpp')
| -rw-r--r-- | clang/test/Tooling/clang-check-pwd.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Tooling/clang-check-pwd.cpp b/clang/test/Tooling/clang-check-pwd.cpp new file mode 100644 index 00000000000..28910e3e39c --- /dev/null +++ b/clang/test/Tooling/clang-check-pwd.cpp @@ -0,0 +1,12 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// RUN: echo '[{"directory":".","command":"clang++ -c %t/test.cpp","file":"%t/test.cpp"}]' > %t/compile_commands.json +// RUN: cp "%s" "%t/test.cpp" +// RUN: PWD="%t" clang-check "%t" "test.cpp" 2>&1|FileCheck %s +// FIXME: Make the above easier. + +invalid; // CHECK: C++ requires + +// FIXME: JSON doesn't like path separator '\', on Win32 hosts. +// FIXME: clang-check doesn't like gcc driver on cygming. +// XFAIL: cygwin,mingw32,win32 |

