From 46bda9ab3c1b2fcfdb523177283801f5ace65d6b Mon Sep 17 00:00:00 2001 From: psmith <> Date: Sat, 7 May 2011 14:36:11 +0000 Subject: Inverted the boolean test from what I wanted it to be. Added a regression test to make sure this continues to work. --- tests/scripts/functions/wildcard | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/scripts') diff --git a/tests/scripts/functions/wildcard b/tests/scripts/functions/wildcard index 2841f5d5..bcd84ad7 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; -- cgit v1.2.1