]> git.ipfire.org Git - thirdparty/automake.git/commit
[ng] tests: fix spurious failures on NetBSD
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 7 Jul 2012 23:04:48 +0000 (01:04 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 8 Jul 2012 07:45:54 +0000 (09:45 +0200)
commit0b9f22b79ce82b8e18f77468a80737921d76aaf5
tree4da279244300322b81c71ae6168a5b40ab62d8d6
parentdafb5ba1769b3db01547646212b8c7babb408730
[ng] tests: fix spurious failures on NetBSD

* t/built-sources.sh (Makefile.am): In a recipe, use 'printf', not 'echo',
to print a string containing a "\n" sequence, because that is interpreted
like a newline by the echo built-in of NetBSD 5.1 /bin/ksh.
* t/maken.sh: Don't expect the timestamp of the current directory to be
unchanged after "make -n" is run in it; this doesn't hold on NetBSD 5.1.
Instead, make the current directory unwritable before running "make -n",
to ensure attempts to modify the directory fail.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/built-sources.sh
t/maken.sh