* tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
duplicated ls entries.
* THANKS: Update.
Reported by Bruce Dugan and others.
Signed-off-by: Eric Blake <ebb9@byu.net>
+2008-12-02 Eric Blake <ebb9@byu.net>
+
+ Avoid MacOS readdir bug in testsuite.
+ * tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
+ duplicated ls entries.
+ * THANKS: Update.
+ Reported by Bruce Dugan and others.
+
2008-11-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
Braden McDaniel braden@endoframe.com
Bram Moolenaar bram@vim.org
Brian Gough bjg@network-theory.co.uk
+Bruce Dugan bld0401@gmail.com
Bruce Korb bkorb@gnu.org
Bruce Lilly ?
Bruno Haible haible@ilog.fr
# confirm that no test modifies variables outside the Autoconf namespace or
# leaves temporary files. AT_CONFIG_CMP uses the variable dumps to confirm that
# tests have the same side effects regardless of caching.
+# The sort -u is necessary, since MacOS 10.5 has a bug where readdir can
+# list a file multiple times in a rapidly changing directory.
m4_defun([AC_STATE_SAVE],
[(set) 2>&1 | sort >state-env.$][1
-ls -1 | sed '/^at-/d;/^state-/d;/^config\./d' | sort >state-ls.$][1
+ls -1 | sed '/^at-/d;/^state-/d;/^config\./d' | sort -u >state-ls.$][1
])# AC_STATE_SAVE
]])