Commit 8f648754 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

testsuite: fix reading .orc files with win32 line endings on windows

Just read them in binary form with win32 line endings and
parse them to the orc parser as-is now that the parser
can handle win32 line endings.
parent 6dd0ccdf
......@@ -89,7 +89,7 @@ read_file (const char *filename)
long size;
int ret;
file = fopen (filename, "r");
file = fopen (filename, "rb");
if (file == NULL) return NULL;
ret = fseek (file, 0, SEEK_END);
......
......@@ -73,7 +73,7 @@ read_file (const char *filename)
long size;
int ret;
file = fopen (filename, "r");
file = fopen (filename, "rb");
if (file == NULL) return NULL;
ret = fseek (file, 0, SEEK_END);
......
......@@ -65,7 +65,7 @@ read_file (const char *filename)
long size;
int ret;
file = fopen (filename, "r");
file = fopen (filename, "rb");
if (file == NULL) return NULL;
ret = fseek (file, 0, SEEK_END);
......
......@@ -59,7 +59,7 @@ read_file (const char *filename)
long size;
int ret;
file = fopen (filename, "r");
file = fopen (filename, "rb");
if (file == NULL) return NULL;
ret = fseek (file, 0, SEEK_END);
......
......@@ -65,7 +65,7 @@ read_file (const char *filename)
long size;
int ret;
file = fopen (filename, "r");
file = fopen (filename, "rb");
if (file == NULL) return NULL;
ret = fseek (file, 0, SEEK_END);
......
......@@ -37,7 +37,7 @@ main (int argc, char *argv[])
}
code = read_file (filename);
if (!code) {
printf("perf_parse <file.orc>\n");
printf("exec_parse <file.orc>\n");
exit(1);
}
......@@ -61,7 +61,7 @@ read_file (const char *filename)
long size;
int ret;
file = fopen (filename, "r");
file = fopen (filename, "rb");
if (file == NULL) return NULL;
ret = fseek (file, 0, SEEK_END);
......
......@@ -63,7 +63,7 @@ read_file (const char *filename)
long size;
int ret;
file = fopen (filename, "r");
file = fopen (filename, "rb");
if (file == NULL) return NULL;
ret = fseek (file, 0, SEEK_END);
......
......@@ -66,7 +66,7 @@ read_file (const char *filename)
long size;
int ret;
file = fopen (filename, "r");
file = fopen (filename, "rb");
if (file == NULL) return NULL;
ret = fseek (file, 0, SEEK_END);
......
......@@ -108,7 +108,7 @@ read_file (const char *filename)
long size;
int ret;
file = fopen (filename, "r");
file = fopen (filename, "rb");
if (file == NULL) return NULL;
ret = fseek (file, 0, SEEK_END);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment