diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-15 13:30:21 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-15 13:30:21 -0400 |
commit | 0a81d50d66565fd3e930fadaadc4a5cb9381d840 (patch) | |
tree | f0e6bc5b2586260bb3f20fcb236b150d7756a39f /tests/scripts/options/eval | |
parent | 3aa2aa7e82ac4c74df298f381c8d1d280cff852e (diff) | |
download | gunmake-0a81d50d66565fd3e930fadaadc4a5cb9381d840.tar.gz |
[SV 39203] Don't set MAKEFLAGS when restarting.
We are restarting with the original command line flags, so if we set
MAKEFLAGS as well that will cause double flags.
Diffstat (limited to 'tests/scripts/options/eval')
-rw-r--r-- | tests/scripts/options/eval | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/scripts/options/eval b/tests/scripts/options/eval index 06a035c..0f82409 100644 --- a/tests/scripts/options/eval +++ b/tests/scripts/options/eval @@ -16,4 +16,14 @@ recurse: ; @$(MAKE) -f #MAKEFILE# && echo recurse!, run_make_test(undef, '--no-print-directory --eval=\$\(info\ eval\) recurse', "eval\neval\nall\nrecurse"); +# Make sure that --eval is handled correctly during restarting +run_make_test(q! +all: ; @echo $@ +-include gen.mk +gen.mk: ; @echo > $@ +!, + '--eval=\$\(info\ eval\)', "eval\neval\nall"); + +unlink('gen.mk'); + 1; |