summaryrefslogtreecommitdiff
path: root/src/kmk/tests/scripts/functions/shell
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/shell
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/shell')
-rw-r--r--src/kmk/tests/scripts/functions/shell9
1 files changed, 9 insertions, 0 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.