Compilation database test: don't try to output to CWD
authorSam McCall <sam.mccall@gmail.com>
Wed, 7 Dec 2016 09:19:07 +0000 (09:19 +0000)
committerSam McCall <sam.mccall@gmail.com>
Wed, 7 Dec 2016 09:19:07 +0000 (09:19 +0000)
commit59336a0a45c64bef27adf2476274466134693723
tree4366393f50ead6af7dc0ed2a7096d7ba746feb73
parenta60db59d6fdfa980988bf0b24719c315720826b4
Compilation database test: don't try to output to CWD

Summary:
Write output from compilation database test to %T rather than the working dir.
Sometimes CWD isn't writable!
Also specify no-canonical-prefixes so that clang has 'clang' in the name.

Reviewers: bkramer

Subscribers: joerg, cfe-commits

Differential Revision: https://reviews.llvm.org/D27504

llvm-svn: 288892
clang/test/Driver/compilation_database.c