summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-05-26 16:53:17 -0400
committerPaul Smith <psmith@gnu.org>2013-05-26 16:53:17 -0400
commit4e3485c1d9e9ecd6db6ad4ae1b90572435acca2c (patch)
tree781bb19957361377cbe88381e462d544fbff827d /tests
parent74d4cf5630f7028e2a615b8ff140f0b6e6d95ae1 (diff)
downloadmake-4e3485c1d9e9ecd6db6ad4ae1b90572435acca2c.tar.gz
[SV #38442] Add library names to the string cache.
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog2
-rw-r--r--tests/scripts/features/archives20
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 7f1bd3cf..7bdc5a12 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,5 +1,7 @@
2013-05-26 Paul Smith <psmith@gnu.org>
+ * scripts/features/archives: Test for Savannah bug #38442.
+
* scripts/misc/bs-nl: Test for Savannah bug #39035.
Add a test for Savannah bug #38945.
diff --git a/tests/scripts/features/archives b/tests/scripts/features/archives
index 41ac26dc..4b331c26 100644
--- a/tests/scripts/features/archives
+++ b/tests/scripts/features/archives
@@ -51,5 +51,25 @@ foo(bar).baz: ; @echo '$@'
!,
'', "foo(bar).baz\n");
+# Check renaming of archive targets.
+# See Savannah bug #38442
+
+mkdir('artest', 0777);
+touch('foo.vhd');
+
+run_make_test(q!
+DIR = artest
+vpath % $(DIR)
+default: lib(foo)
+(%): %.vhd ; @cd $(DIR) && touch $(*F) && $(AR) $(ARFLAGS) $@ $(*F) >/dev/null 2>&1 && rm $(*F)
+.PHONY: default
+!,
+ '', "");
+
+run_make_test(undef, '', "#MAKE#: Nothing to be done for 'default'.\n");
+
+unlink('foo.vhd');
+remove_directory_tree('artest');
+
# This tells the test driver that the perl test script executed properly.
1;