summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2010-10-12 01:01:43 +0000
committerFrancois Pichet <pichet2000@gmail.com>2010-10-12 01:01:43 +0000
commit85e6da1f19e4bad3b39f30bd90ec112a8beb72c9 (patch)
treef71cbea2f34e7e54dea44f0dd94941aa9f6b9d50 /clang/tools/c-index-test/c-index-test.c
parent7bb8af613cc78ddf049d44ce3a28a992788df281 (diff)
downloadbcm5719-llvm-85e6da1f19e4bad3b39f30bd90ec112a8beb72c9.tar.gz
bcm5719-llvm-85e6da1f19e4bad3b39f30bd90ec112a8beb72c9.zip
This patch remove the Win32 XFAIL from remap-complete.c
The problem was that text files were open in text mode and Microsoft implementation of fread and write will try to do nasty line-feed conversion which make the line position no longer valid. The fix is to read and write files in binary mode. llvm-svn: 116286
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 773c0093211..84ceab2e661 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -109,7 +109,7 @@ int parse_remapped_files(int argc, const char **argv, int start_arg,
}
/* Open the file that we're remapping to. */
- to_file = fopen(semi + 1, "r");
+ to_file = fopen(semi + 1, "rb");
if (!to_file) {
fprintf(stderr, "error: cannot open file %s that we are remapping to\n",
semi + 1);
OpenPOWER on IntegriCloud