83 |
first second: ; \@echo \$\@; $sleep_command 1; echo \$\@", |
first second: ; \@echo \$\@; $sleep_command 1; echo \$\@", |
84 |
'-j2', "first\nfirst\nsecond\nsecond"); |
'-j2', "first\nfirst\nsecond\nsecond"); |
85 |
|
|
86 |
|
# Michael Matz <matz@suse.de> reported a bug where if make is running in |
87 |
|
# parallel without -k and two jobs die in a row, but not too close to each |
88 |
|
# other, then make will quit without waiting for the rest of the jobs to die. |
89 |
|
|
90 |
|
run_make_test(" |
91 |
|
.PHONY: all fail.1 fail.2 fail.3 ok |
92 |
|
all: fail.1 ok fail.2 fail.3 |
93 |
|
|
94 |
|
fail.1 fail.2 fail.3: |
95 |
|
\@sleep \$(patsubst fail.%,%,\$\@) |
96 |
|
\@echo Fail |
97 |
|
\@exit 1 |
98 |
|
|
99 |
|
ok: |
100 |
|
\@sleep 4 |
101 |
|
\@echo Ok done", |
102 |
|
'-rR -j5', 'Fail |
103 |
|
#MAKE#: *** [fail.1] Error 1 |
104 |
|
#MAKE#: *** Waiting for unfinished jobs.... |
105 |
|
Fail |
106 |
|
#MAKE#: *** [fail.2] Error 1 |
107 |
|
Fail |
108 |
|
#MAKE#: *** [fail.3] Error 1 |
109 |
|
Ok done', |
110 |
|
512); |
111 |
|
|
112 |
|
|
113 |
1; |
1; |