summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-15 13:30:21 -0400
committerPaul Smith <psmith@gnu.org>2013-09-15 13:30:21 -0400
commit2f279c370a8736ee71e87d721ea914cd7ec2bf9a (patch)
treef0e6bc5b2586260bb3f20fcb236b150d7756a39f /tests
parent9d55c8ff13adee1e922b36553d7e6b75d5e3ae13 (diff)
downloadmake-2f279c370a8736ee71e87d721ea914cd7ec2bf9a.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')
-rw-r--r--tests/ChangeLog5
-rw-r--r--tests/scripts/options/eval10
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 5eff7ec0..c629a0ed 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-15 Paul Smith <psmith@gnu.org>
+
+ * scripts/options/eval: Verify --eval during restart.
+ Test for Savannah bug #39203.
+
2013-09-14 Paul Smith <psmith@gnu.org>
* scripts/features/output-sync: Verify -Orecurse properly.
diff --git a/tests/scripts/options/eval b/tests/scripts/options/eval
index 06a035c3..0f824090 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;