]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: test-N: fix false positives on some systems
authorPádraig Brady <P@draigBrady.com>
Thu, 7 Mar 2019 04:09:16 +0000 (20:09 -0800)
committerPádraig Brady <P@draigBrady.com>
Thu, 7 Mar 2019 06:00:53 +0000 (22:00 -0800)
commitb918a20234db81055f1e804fcd77378a246ddd98
treebffbd88352be61e46c8641fcb90b4588361cacf7
parentbf2f64c7d5aaefb9cfa078a43cb7fa20a9612ed3
tests: test-N: fix false positives on some systems

Testing by Assaf Gordon on OSX showed the atime wasn't
being updated when explicitly set back in time.
Also Debian 8.11 / mips64 was seen to not update the
mtime when truncating an empty file.

* tests/misc/test-N.sh: Isolate from different timestamping
behaviors of various (file) systems, by correlating
the timestamps with stat(1) before using `test -N`.
tests/misc/test-N.sh