]> sourceware.org Git - automake.git/commitdiff
fixed unused.test aclocal bug
authorTom Tromey <tromey@redhat.com>
Fri, 13 Feb 1998 05:28:10 +0000 (05:28 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 13 Feb 1998 05:28:10 +0000 (05:28 +0000)
ChangeLog
aclocal.in
tests/ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/unused.test [new file with mode: 0755]

index 2cf34d7c186611480ed1c2c13690d4118f8eb1a3..abeef9931ff1434affd3b483b675d2abf5b21b81 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Feb 12 22:27:05 1998  Tom Tromey  <tromey@cygnus.com>
+
+       * aclocal.in (scan_m4_files): Reverse-sort keys when constructing
+       `search' function.  From Johan Danielsson.
+
 Tue Sep 16 14:13:15 1997  Paul D. Smith  <psmith@baynetworks.com>
 
        * automake.in: Create new option --generate-deps.  This option has
index 93f88b164ffcd04d8f5d9c4280d152c32f4044d4..d6b61c3592798872aa1ab49b0b26ea847041bd69 100644 (file)
@@ -274,7 +274,7 @@ sub scan_m4_files
     # function (instead of just evalling $search in the loop) so that
     # "die" is correctly and easily propagated if run.
     local ($search, $expr, $key) = '';
-    foreach $key (keys %map)
+    foreach $key (reverse sort keys %map)
     {
        # EXPR is a regexp matching the name of the macro.
        ($expr = $key) =~ s/(\W)/\\$1/g;
index 3139e63b85a263e6356801ba4046b74ab42f111b..22bfb0a72591f6c628301aa6548576a959adca56 100644 (file)
@@ -1,5 +1,7 @@
 Thu Feb 12 21:00:34 1998  Tom Tromey  <tromey@cygnus.com>
 
+       * unused.test: New file.
+
        * whoami.test: New file.
 
        * alpha.test: New file.
index c3ccafc45681f681ea904a85c797ba2ae178b0c4..3680561cfe5bb2ec200937af1f4599cc86418163 100644 (file)
@@ -28,7 +28,7 @@ seenc.test cygwin32.test lisp.test stamph.test ldadd.test \
 version2.test conf2.test cond.test cond2.test xsource.test \
 libobj6.test depend3.test output5.test ammissing.test install.test \
 libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \
-whoami.test
+whoami.test unused.test
 
 EXTRA_DIST = defs $(TESTS)
 
index 7afa3834cf9dbfb159a84b2332060f555098d2dc..5ddf8b748f08acb065e446b2c3e5e8d657dec584 100644 (file)
@@ -89,7 +89,7 @@ seenc.test cygwin32.test lisp.test stamph.test ldadd.test \
 version2.test conf2.test cond.test cond2.test xsource.test \
 libobj6.test depend3.test output5.test ammissing.test install.test \
 libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \
-whoami.test
+whoami.test unused.test
 
 EXTRA_DIST = defs $(TESTS)
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/tests/unused.test b/tests/unused.test
new file mode 100755 (executable)
index 0000000..18f02da
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+# Test for failing check for unused macros.  From Johan Danielsson.
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+MACRO_1
+MACRO_1_2
+MACRO_1_2_3
+END
+
+cat > acinclude.m4 << 'END'
+AC_DEFUN(MACRO_1, echo 1)
+AC_DEFUN(MACRO_1_2, echo 12)
+AC_DEFUN(MACRO_1_2_3, echo 123)
+END
+
+$ACLOCAL 2> output || exit 1
+test -z "`cat output`"
This page took 0.040407 seconds and 5 git commands to generate.