From b237dff7753f444c4e0e8ea6bb1929243e45b310 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 8 Aug 2005 05:08:00 +0000 Subject: - Fixed a bug reported by Michael Matz regarding handling of parallel jobs after a failed job. - Enhancements to WINDOWS32 code from Eli Zaretskii. - Add Microsoft Project files from J. Grant. --- tests/scripts/features/parallelism | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'tests/scripts') diff --git a/tests/scripts/features/parallelism b/tests/scripts/features/parallelism index 4768539..c75f436 100644 --- a/tests/scripts/features/parallelism +++ b/tests/scripts/features/parallelism @@ -83,4 +83,31 @@ all: first second first second: ; \@echo \$\@; $sleep_command 1; echo \$\@", '-j2', "first\nfirst\nsecond\nsecond"); +# Michael Matz reported a bug where if make is running in +# parallel without -k and two jobs die in a row, but not too close to each +# other, then make will quit without waiting for the rest of the jobs to die. + +run_make_test(" +.PHONY: all fail.1 fail.2 fail.3 ok +all: fail.1 ok fail.2 fail.3 + +fail.1 fail.2 fail.3: + \@sleep \$(patsubst fail.%,%,\$\@) + \@echo Fail + \@exit 1 + +ok: + \@sleep 4 + \@echo Ok done", + '-rR -j5', 'Fail +#MAKE#: *** [fail.1] Error 1 +#MAKE#: *** Waiting for unfinished jobs.... +Fail +#MAKE#: *** [fail.2] Error 1 +Fail +#MAKE#: *** [fail.3] Error 1 +Ok done', + 512); + + 1; -- cgit v1.2.3