chiark / gitweb /
test/example/check: Reset times for regen tests
In principle, on a filesystem with poor time resolution, the updates
to the input files might have the same timestamp as the output files.
Things would then not be regenerated.
Work around this by resetting all timestamps in the build tree to
1s ago. This should ensure that exactly the one file whose edit we
are simulating seems, to make, to have been changed.
There is a remaining possible problem: if our last actual change to
the subdirmk source tree is less than 1s ago, this might rebuild too
much.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>