Describe the bug
According to the man page of fwrite (cf. https://linux.die.net/man/3/fwrite), fwrite shall only return 0 or the number of successfully written items.
To Reproduce
Build SDL2-os2
Build tests
Run testautomation.
The test for a file that is open for reading fails, expecting a return value of 0, getting -1.
Expected behavior
fwrite should never return EOF (-1).
Desktop (please complete the following information):
Describe the bug According to the man page of fwrite (cf. https://linux.die.net/man/3/fwrite), fwrite shall only return 0 or the number of successfully written items.
To Reproduce
Expected behavior fwrite should never return EOF (-1).
Desktop (please complete the following information):