Tree
- Tree:
5e1abea32cc1dabaa53d7e70a44b2803e5d2a22e
- Date:
- Message:
- Don't return errno when fread fails fread doesn't consistently set errno on failure. - On OpenBSD fread sets errno on possible argument overflows, but this doesn't occur on other platforms. rfread doesn't set errno on EOF or other failures. - ferror does not set errno on failure. Returning errno here is possibly inconsistent. Return EIO here instead. ok stsp@
README
The test produces a diff, which is successful if it is able to reconstruct the original source files from it. It is not tested whether diff output is optimal or beautiful. Since different diff algorithms can produce different diff outputs, the expect*.diff files are merely provided for reference and are not part of the tests.