generic/528: take fs timestamps granularity into account in tolerance interval
Filesystems timestamps granularity can cause spurious test failures:
QA output created by 528
btime has value of
1635818936
btime is NOT in range
1635818937 ..
1635818942
This test output makes it looks like $testfile was created *before* the
'date' command was executed. What really happen was that btime was
truncated according to the granularity defined by filesystem (I've seen
this with both ext4 and xfs, but I guess others are also affected).
Since granularity can't be worse than a second, simply adjust the test
tolerance interval by 1 second.
Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>