From 39a9fd16381469f911d42a3e27975edcb248bbf2 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 6 Oct 2011 16:21:16 +0200 Subject: [PATCH] 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. --- ChangeLog | 9 +++++++++ tests/insthook.test | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) 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 <