summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@kolpackov.net>2004-09-27 18:09:52 +0000
committerBoris Kolpackov <boris@kolpackov.net>2004-09-27 18:09:52 +0000
commit341312cc57eba0a1888b3dc89510894e3e7e42c9 (patch)
tree985bb6956edd15c2cfcd2902873872575a85094e /tests
parent29d78ddb2842d75956fb9b2f50fa7032f6a28416 (diff)
downloadgunmake-341312cc57eba0a1888b3dc89510894e3e7e42c9.tar.gz
bugfix for exported pattern-specific variables
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog4
-rw-r--r--tests/scripts/features/patspecific_vars9
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 542194e..8420705 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-27 Boris Kolpackov <boris@kolpackov.net>
+
+ * scripts/features/patspecific_vars: Test exported variables.
+
2004-09-22 Paul D. Smith <psmith@gnu.org>
* run_make_tests.pl (run_make_test): Don't add newlines to the
diff --git a/tests/scripts/features/patspecific_vars b/tests/scripts/features/patspecific_vars
index 9ace5c4..74de9bb 100644
--- a/tests/scripts/features/patspecific_vars
+++ b/tests/scripts/features/patspecific_vars
@@ -61,4 +61,13 @@ $answer = "baz: foo two baz\nfour.x: foo two baz\n";
$answer = "aaa bbb\nccc ddd\n";
&compare_output($answer,&get_logfile(1));
+# TEST #5 -- test pattern-specific exported variables
+#
+run_make_test('
+/%: export foo := foo
+
+/bar:
+ @test "$(foo)" == "$$foo"
+', '', '');
+
1;