]> granicus.if.org Git - clang/commit
[test] Fix baremetal test to allow any -resource-dir
authorMichal Gorny <mgorny@gentoo.org>
Mon, 5 Jun 2017 14:13:37 +0000 (14:13 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Mon, 5 Jun 2017 14:13:37 +0000 (14:13 +0000)
commitffdad0d2b5776a6741ca9d26401e7f72c99949b3
tree9613df68a012c7a86ce71e15043608da4340be87
parenta3d66c2d221d3eb97e380181a8c6071c07618798
[test] Fix baremetal test to allow any -resource-dir

The baremetal test (r303873) has been added with expectance of very
specific -resource-dir. However, the test itself nor the BareMetal
driver does not enforce any specific -resource-dir, making this
constraint invalid. It already has been altered twice -- in r303910 for
Windows compatibility, and in r304085 for systems using lib64. To
account for even more systems, just use [[RESOURCE_DIR]] like a number
of other tests do. This is needed for Gentoo where RESOURCE_DIR starts
with ../ (uses relative path to a parent directory).

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304715 91177308-0d34-0410-b5e6-96231b3b80d8
test/Driver/baremetal.cpp