summaryrefslogtreecommitdiffstats
path: root/tests/asm-tst8.c
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-05-04 12:07:54 +0200
committerUlf Hermann <[email protected]>2017-05-08 09:36:02 +0000
commit0cfab8d6e47c165ee02d027c11b9a11c726516fa (patch)
tree07868d226de62c4f9fd80ddb7882fe19151445b0 /tests/asm-tst8.c
parent8ac52d75d47da355c4ace3224161de097db3e8d9 (diff)
Open files in O_BINARY
If O_BINARY is not defined, define it to 0, so that the change has no effect then. Some systems have separate binary and text modes for files, and we don't want the text mode to be used. Change-Id: If7efb5bd448c2a1c7d1eb5dab276849b1b15a3ce Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests/asm-tst8.c')
-rw-r--r--tests/asm-tst8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/asm-tst8.c b/tests/asm-tst8.c
index 4fb0d998..d1c64d24 100644
--- a/tests/asm-tst8.c
+++ b/tests/asm-tst8.c
@@ -72,7 +72,7 @@ main (void)
}
/* Check the file. */
- fd = open (fname, O_RDONLY);
+ fd = open (fname, O_RDONLY | O_BINARY);
if (fd == -1)
{
printf ("cannot open generated file: %m\n");