Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmap01: fix check_file() test for file corruption
mmap01 reported random test failures. Investigation showed that check_file() will compare the whole buffer even if less bytes were read from the file. Adjust check_file() to: - fail the test if the not the correct amount of data has been read - only compare the bytes actually read Link: https://lore.kernel.org/ltp/[email protected]/ Reviewed-by: Cyril Hrubis <[email protected]> Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Sven Schnelle <[email protected]> [ pvorel: replace goto with return ] Signed-off-by: Petr Vorel <[email protected]>
- Loading branch information