aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-12-01 19:42:07 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-12-01 19:42:07 +0000
commit5fecd674628e2ef80e8ffe31c92664881e71e3aa (patch)
tree0d7728bfb67f17bfc53403e7e8499d19cbe4011d /clang/unittests/libclang/LibclangTest.cpp
parentb53791e5a7eb961928807f21225044fb3eb984c9 (diff)
downloadllvm-5fecd674628e2ef80e8ffe31c92664881e71e3aa.zip
llvm-5fecd674628e2ef80e8ffe31c92664881e71e3aa.tar.gz
llvm-5fecd674628e2ef80e8ffe31c92664881e71e3aa.tar.bz2
Avoid picking up system headers in unittest by providing a fake libstdc++ with a ridiculously high version number.
The host libstdc++ may be horribly broken and we want the fake one to be picked up. This workaround is lame but I don't see a better way. llvm-svn: 254446
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
-rw-r--r--clang/unittests/libclang/LibclangTest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/unittests/libclang/LibclangTest.cpp b/clang/unittests/libclang/LibclangTest.cpp
index 9eb3fd0..e190dec 100644
--- a/clang/unittests/libclang/LibclangTest.cpp
+++ b/clang/unittests/libclang/LibclangTest.cpp
@@ -469,9 +469,11 @@ TEST_F(LibclangReparseTest, ReparseWithModule) {
}
TEST_F(LibclangReparseTest, clang_parseTranslationUnit2FullArgv) {
- std::string EmptyFiles[] = {"lib/gcc/arm-linux-gnueabi/4.6.1/crtbegin.o",
+ // Provide a fake GCC 99.9.9 standard library that always overrides any local
+ // GCC installation.
+ std::string EmptyFiles[] = {"lib/gcc/arm-linux-gnueabi/99.9.9/crtbegin.o",
"include/arm-linux-gnueabi/.keep",
- "include/c++/4.6.1/vector"};
+ "include/c++/99.9.9/vector"};
for (auto &Name : EmptyFiles)
WriteFile(Name, "\n");