bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Zack Weinberg
Subject: [sr #110989] Improve reliability of AT_MTIME_DELAY in test suite with a loop
Date: Tue, 9 Jan 2024 16:30:40 -0500 (EST)

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]