summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2011-05-07 14:36:11 +0000
committerPaul Smith <psmith@gnu.org>2011-05-07 14:36:11 +0000
commitb664d3a91d57bbd7efdb042489d70a1473e46753 (patch)
tree96970eba6806b711f337f4c1c5c05cb699f71005 /tests
parentb5c065418f63f22dc8e6ab508708afd4de070d55 (diff)
downloadgunmake-b664d3a91d57bbd7efdb042489d70a1473e46753.tar.gz
Inverted the boolean test from what I wanted it to be. Added a
regression test to make sure this continues to work.
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog5
-rw-r--r--tests/scripts/functions/wildcard12
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 86c6789..73b49fa 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-07 Paul Smith <psmith@gnu.org>
+
+ * scripts/functions/wildcard: Verify wildcard used to test for
+ file existence/non-existence.
+
2011-05-02 Paul Smith <psmith@gnu.org>
* scripts/functions/sort: Add a test for Savannah bug #33125.
diff --git a/tests/scripts/functions/wildcard b/tests/scripts/functions/wildcard
index 2841f5d..bcd84ad 100644
--- a/tests/scripts/functions/wildcard
+++ b/tests/scripts/functions/wildcard
@@ -88,4 +88,16 @@ all: ; @echo $(wildcard xz--y*.7)
!,
'', "\n");
+# TEST #5: wildcard used to verify file existence
+
+touch('xxx.yyy');
+
+run_make_test(q!exists: ; @echo file=$(wildcard xxx.yyy)!,
+ '', "file=xxx.yyy\n");
+
+unlink('xxx.yyy');
+
+run_make_test(q!exists: ; @echo file=$(wildcard xxx.yyy)!,
+ '', "file=\n");
+
1;