mirror of
https://github.com/mirror/make.git
synced 2026-09-02 04:38:12 +08:00
[SV 47151] Exit with 1 when checking recursive make -q
* job.h (struct child): New bit to mark recursive command lines. * job.c (start_job_command): Set the recursive command line bit. (reap_children): If the child is a recursive command and it exits with 1 during question mode, don't print an error and exit with 1. * tests/scripts/options/dash-q: Add a regression test.
This commit is contained in:
@@ -74,4 +74,13 @@ build-y: build-x
|
||||
',
|
||||
'-q build-y', "#MAKE#: *** No rule to make target 'build-stamp-2', needed by 'build-arch'. Stop.\n", 512);
|
||||
|
||||
# TEST 9 : Savannah bug # 47151
|
||||
# Make sure we exit with 1 when invoking a recursive make
|
||||
run_make_test('
|
||||
foo: bar ; echo foo
|
||||
bar: ; @$(MAKE) -f #MAKEFILE# baz
|
||||
baz: ; echo baz
|
||||
',
|
||||
'-q foo', '', 256);
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user