[sr #110989] Improve reliability of AT_MTIME_DELAY in test suite with a loop

Zack Weinberg <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Follow-up Comment #2, sr#110989 (group autoconf):

No, if I understood Nick and Jacob's suggestions correctly, the idea is to
replace $am_sleep / AT_MTIME_DELAY with something like


while [ ! newer_file -nt older_file ]; do
  sleep $am_cv_filesystem_timestamp_resolution
  touch newer_file
done


But we need a Perl helper to implement that, because test -nt isn't in POSIX,
and a test implementation that does support -nt will probably be comparing
'struct timespec's directly rather than converting to 'double' first as Perl
does.  My current vague plan is to make it be a special mode of autom4te,


autom4te --ensure-newer newer_file older_file


It could also be a separate helper script like move-if-change or automake's
"missing".


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110989>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.