Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 884589a

Browse files
[SYCL][ESIMD] Fixed mandelbrot tests on Windows (#44)
On Windows \n (\x0a) translates into CRLF.
1 parent 255d371 commit 884589a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SYCL/ESIMD/mandelbrot/mandelbrot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int main(int argc, char *argv[]) {
118118
}
119119

120120
char *out_file = argv[1];
121-
FILE *dumpfile = fopen(out_file, "w");
121+
FILE *dumpfile = fopen(out_file, "wb");
122122
if (!dumpfile) {
123123
std::cerr << "Cannot open " << out_file << std::endl;
124124
return -2;

SYCL/ESIMD/mandelbrot/mandelbrot_spec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ int main(int argc, char *argv[]) {
155155
}
156156

157157
char *out_file = argv[1];
158-
FILE *dumpfile = fopen(out_file, "w");
158+
FILE *dumpfile = fopen(out_file, "wb");
159159
if (!dumpfile) {
160160
std::cerr << "Cannot open " << out_file << std::endl;
161161
return -2;

0 commit comments

Comments
 (0)