]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix spurious failure in 'insthook.test'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 6 Oct 2011 14:21:16 +0000 (16:21 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 6 Oct 2011 14:21:16 +0000 (16:21 +0200)
* 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
tests/insthook.test

index bbea2b320e104bce1d09b342ceb97f542ab90913..9e5b59dca078d4ee4bcd75cc0f3fe8d02e4d6eac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-10-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       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  <stefano.lattarini@gmail.com>
 
        maintcheck: fix spurious failure
index a315447e68f8289099feed4a1fd100180545ce2e..1b03324995b68cb338a2aae207983a78be443577 100755 (executable)
@@ -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 <<EOF
 install-hook:
@@ -73,3 +75,5 @@ EOF
 AUTOMAKE_fails
 grep install-data-hook stderr
 grep install-exec-hook stderr
+
+: