summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/Inputs
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-30 14:04:32 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-30 14:04:32 +0000
commit705cd965e3b09ac3d12a21f45d24140daa9afded (patch)
tree188747d831af14ba1f47204f881ebbaf0684e438 /clang/test/Preprocessor/Inputs
parent411d35e25e3e655e3b2b1c67b804f4fad93cb4f4 (diff)
downloadbcm5719-llvm-705cd965e3b09ac3d12a21f45d24140daa9afded.tar.gz
bcm5719-llvm-705cd965e3b09ac3d12a21f45d24140daa9afded.zip
Force a header file input to the headermap test to have different
contents than the header file by the same name under the system header search root. Surprisingly, this is required to get the test to pass on some systems. So, it turns out that there exist filesystems in the world which unique the inode of all files based on their contents. This results in two files with the same contents at different paths suddenly having the same inode. This doesn't actually cause any problems in practice as the contents are the same, and the path used to access the files are the same. However, it can cause tests like this one to be more brittle because the file manager ends up de-duplicating the file entries by inode. We don't have any other really easy ways to observe the behavior shift because the whole point is that the #include written in the source code doesn't contain the information -- instead it is contained in the header map. If folks have other solutions they would prefer, I'm more than happy to work on them, but this seems a reasonable way to ensure that the test in question exercises the code it wants to exercise. llvm-svn: 205149
Diffstat (limited to 'clang/test/Preprocessor/Inputs')
-rw-r--r--clang/test/Preprocessor/Inputs/headermap-rel2/Product/someheader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/Inputs/headermap-rel2/Product/someheader.h b/clang/test/Preprocessor/Inputs/headermap-rel2/Product/someheader.h
index ab2a05dbbf8..ca2e52103b3 100644
--- a/clang/test/Preprocessor/Inputs/headermap-rel2/Product/someheader.h
+++ b/clang/test/Preprocessor/Inputs/headermap-rel2/Product/someheader.h
@@ -1 +1 @@
-#define A 1
+#define A 2
OpenPOWER on IntegriCloud