From: Stefano Lattarini Date: Sat, 7 May 2011 12:34:39 +0000 (+0200) Subject: tests: fix spurious failure of txinfo21.test on FreeBSD X-Git-Tag: ng-0.5a~179^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a370e2f5cd098af9b95314cdd49b0fbee6588a82;p=thirdparty%2Fautomake.git tests: fix spurious failure of txinfo21.test on FreeBSD * tests/txinfo21.test: Use the `is_newest' subroutine instead of the `ls -t' hack to to determine whether a file has been updated. This is required because at least FreeBSD `ls' do not sort files with the same timestamp in alphabetical order when using the `-t' option. --- diff --git a/ChangeLog b/ChangeLog index 62c5493f0..b9c71f37e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-05-07 Stefano Lattarini + + tests: fix spurious failure of txinfo21.test on FreeBSD + * tests/txinfo21.test: Use the `is_newest' subroutine instead of + the `ls -t' hack to to determine whether a file has been updated. + This is required because at least FreeBSD `ls' do not sort files + with the same timestamp in alphabetical order when using the `-t' + option. + 2011-05-04 Stefano Lattarini tests defs: allow requirements for compilers (mostly dummy) diff --git a/tests/txinfo21.test b/tests/txinfo21.test index 4bbce4aeb..5644c0bf4 100755 --- a/tests/txinfo21.test +++ b/tests/txinfo21.test @@ -95,11 +95,11 @@ test -d sub/main2.html test -d rec/main3.html # Rebuilding main.html should cause its timestamp to be updated. -test `ls -1td main.texi main.html | sed 1q` = main.html +is_newest main.html main.texi $sleep touch main.texi $MAKE html -test `ls -1td main.texi main.html | sed 1q` = main.html +is_newest main.html main.texi $MAKE clean test ! -d main.html