Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
safe_macros: Fix confusing safe_read() failure output
In the case that we read() less bytes than expected in the strict mode we used the same tst_brk() as for the case when read() fails. However for short reads the errno is in an udefined state and we possibly end up with confusing TBROK message. Andrea reported EACESS ernno in the TBROK message on a short read() while developing tests. Reported-by: Andrea Cervesato <[email protected]> Signed-off-by: Cyril Hrubis <[email protected]> Reviewed-by: Petr Vorel <[email protected]>
- Loading branch information