Ensure that stderr from shell functions in recipes is synced.

This commit is contained in:
Paul Smith
2013-09-21 15:23:05 -04:00
parent 4120f91846
commit 9cd01958da
7 changed files with 129 additions and 67 deletions

View File

@@ -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;