From: Stefano Lattarini Date: Thu, 6 Oct 2011 14:21:16 +0000 (+0200) Subject: tests: fix spurious failure in 'insthook.test' X-Git-Tag: v1.11.1b~16^2~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39a9fd16381469f911d42a3e27975edcb248bbf2;p=thirdparty%2Fautomake.git tests: fix spurious failure in 'insthook.test' * tests/insthook.test (Makefile.am): Add a proper `uninstall-hook' target to remove the symlink created by the `install-exec-hook' target; this prevents "make distcheck" from failing spuriously. Since we are at it, delete an extra blank line, and add a trailing `:' command. --- diff --git a/ChangeLog b/ChangeLog index bbea2b320..9e5b59dca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-10-06 Stefano Lattarini + + tests: fix spurious failure in 'insthook.test' + * tests/insthook.test (Makefile.am): Add a proper `uninstall-hook' + target to remove the symlink created by the `install-exec-hook' + target; this prevents "make distcheck" from failing spuriously. + Since we are at it, delete an extra blank line, and add a trailing + `:' command. + 2011-10-06 Stefano Lattarini maintcheck: fix spurious failure diff --git a/tests/insthook.test b/tests/insthook.test index a315447e6..1b0332499 100755 --- a/tests/insthook.test +++ b/tests/insthook.test @@ -37,6 +37,9 @@ installcheck-local: test -f "$(bindir)/foo" test -f "$(bindir)/foo-$(VERSION)" : > $(top_srcdir)/../ok + +uninstall-hook: + rm -f $(DESTDIR)$(bindir)/foo-$(VERSION) END echo 1 > foo @@ -63,7 +66,6 @@ grep 1 bin/foo-1.0 grep 2 bin/foo-2.0 grep 2 bin/foo - # install-hook is an error. cat >>Makefile.am <