diff options
author | Paul Smith <psmith@gnu.org> | 2005-08-08 05:08:00 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2005-08-08 05:08:00 +0000 |
commit | b237dff7753f444c4e0e8ea6bb1929243e45b310 (patch) | |
tree | 8ccb5752696b899aee3a1b7cce24936d698a835c /tests/scripts | |
parent | a53903e4c32f47ce3e20edd9114f4fabd028d13c (diff) | |
download | gunmake-b237dff7753f444c4e0e8ea6bb1929243e45b310.tar.gz |
- 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.
Diffstat (limited to 'tests/scripts')
-rw-r--r-- | tests/scripts/features/parallelism | 27 |
1 files changed, 27 insertions, 0 deletions
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 <matz@suse.de> 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; |