Avoid testing for a particular choice of resource dir.
authorSean Silva <chisophugis@gmail.com>
Wed, 28 Jan 2015 14:19:08 +0000 (14:19 +0000)
committerSean Silva <chisophugis@gmail.com>
Wed, 28 Jan 2015 14:19:08 +0000 (14:19 +0000)
commitfdcbb0284eaed39c3562fd40598b28453d5e4c13
tree60e7731b1513c1aeb0807437c073961ae3fc60d0
parent0c010cddb32775721fcc5dce9ae815d0510578e0
Avoid testing for a particular choice of resource dir.

Without this patch, this test was accidentally testing that
CLANG_RESOURCE_DIR, CLANG_LIBDIR_SUFFIX, and CLANG_VERSION_STRING
were set to a particular set of values.

The test was also getting pretty hairy since it was attempting to craft
a regular expression that covered "all" possible combinations of
settings for these configure-time constants.

Clean it up by directly capturing the resource directory in a FileCheck
variable.

llvm-svn: 227310
clang/test/Driver/linux-header-search.cpp