summaryrefslogtreecommitdiff
path: root/tests/scripts/features/output-sync
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-21 15:23:05 -0400
committerPaul Smith <psmith@gnu.org>2013-09-21 17:08:42 -0400
commit9cd01958da86a68d0e47defcb9745ab373ef3d79 (patch)
treec43410ce8ab951afa22d6a17f68c5c84ea656025 /tests/scripts/features/output-sync
parent4120f91846f781ead7350f86c9614a19824450f5 (diff)
downloadgunmake-9cd01958da86a68d0e47defcb9745ab373ef3d79.tar.gz
Ensure that stderr from shell functions in recipes is synced.
Diffstat (limited to 'tests/scripts/features/output-sync')
-rw-r--r--tests/scripts/features/output-sync6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/scripts/features/output-sync b/tests/scripts/features/output-sync
index a6b2456..e09505f 100644
--- a/tests/scripts/features/output-sync
+++ b/tests/scripts/features/output-sync
@@ -261,5 +261,11 @@ all:
run_make_test(undef, '-j -Otarget', "foobar\ntrue\n");
+# Ensure that shell functions inside recipes write stderr to the sync file
+run_make_test(q!
+all: ; @: $(shell echo foo 1>&2)
+!,
+ '-w -Oline', "#MAKE#: Entering directory '#PWD#'\nfoo\n#MAKE#: Leaving directory '#PWD#'\n");
+
# This tells the test driver that the perl test script executed properly.
1;