diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-21 17:08:42 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-21 17:08:42 -0400 |
commit | 37a11621cc6b093e9500efa8f374390c800a2d50 (patch) | |
tree | c43410ce8ab951afa22d6a17f68c5c84ea656025 /tests | |
parent | 3e4234e3971b19320656d56a8323ee174c84638c (diff) | |
download | make-37a11621cc6b093e9500efa8f374390c800a2d50.tar.gz |
Ensure that stderr from shell functions in recipes is synced.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 3 | ||||
-rw-r--r-- | tests/scripts/features/output-sync | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 4ee7265b..e0e9475e 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,8 @@ 2013-09-21 Paul Smith <psmith@gnu.org> + * scripts/features/output-sync: Test shell functions writing to + stderr in recipes: ensure it's captured via output-sync. + * scripts/options/dash-w: Add a test for -w flag. 2013-09-15 Paul Smith <psmith@gnu.org> diff --git a/tests/scripts/features/output-sync b/tests/scripts/features/output-sync index a6b24563..e09505fd 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; |