summaryrefslogtreecommitdiff
path: root/src/kmk/tests/scripts/functions
diff options
context:
space:
mode:
authorRitesh Raj Sarraf <rrs@debian.org>2013-12-02 14:27:40 -0500
committerRitesh Raj Sarraf <rrs@debian.org>2013-12-02 14:27:40 -0500
commit00cc15e3ce4fc63e509a575ae3016ca80afcc344 (patch)
tree3e5d21daf12cbe8c9f163401eee6eb902305fb69 /src/kmk/tests/scripts/functions
parentb31bdef8a3eba48bf069962004794c7ca58a6b92 (diff)
downloadkbuild-upstream.tar.gz
Imported Upstream version 0.1.9998svn2695+dfsgupstream/0.1.9998svn2695+dfsgupstream
Diffstat (limited to 'src/kmk/tests/scripts/functions')
-rw-r--r--src/kmk/tests/scripts/functions/shell9
-rw-r--r--src/kmk/tests/scripts/functions/wildcard15
2 files changed, 15 insertions, 9 deletions
diff --git a/src/kmk/tests/scripts/functions/shell b/src/kmk/tests/scripts/functions/shell
index ecea4cf..723cd0e 100644
--- a/src/kmk/tests/scripts/functions/shell
+++ b/src/kmk/tests/scripts/functions/shell
@@ -11,6 +11,15 @@ all: ; @echo $(shell echo hi)
','','hi');
+# Test unescaped comment characters in shells. Savannah bug #20513
+if ($all_tests) {
+ run_make_test(q!
+FOO := $(shell echo '#')
+foo: ; echo '$(FOO)'
+!,
+ '', "#\n");
+}
+
# Test shells inside exported environment variables.
# This is the test that fails if we try to put make exported variables into
# the environment for a $(shell ...) call.
diff --git a/src/kmk/tests/scripts/functions/wildcard b/src/kmk/tests/scripts/functions/wildcard
index d61384e..2841f5d 100644
--- a/src/kmk/tests/scripts/functions/wildcard
+++ b/src/kmk/tests/scripts/functions/wildcard
@@ -81,14 +81,11 @@ if ((-f "example.1")||(-f "example.two")||(-f "example.3")||(-f "example.for"))
&compare_output($answer,&get_logfile(1));
+# TEST #4: Verify that failed wildcards don't return the pattern
-1;
-
-
-
-
-
-
-
-
+run_make_test(q!
+all: ; @echo $(wildcard xz--y*.7)
+!,
+ '', "\n");
+1;