diff options
author | Paul Smith <psmith@gnu.org> | 2006-03-20 02:36:36 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2006-03-20 02:36:36 +0000 |
commit | 24aac7f8f6c72d60ce7c9f80868cbf21fb458072 (patch) | |
tree | 7172e5223fe888647c6a77fc0b892dfd8f081a45 /tests/scripts/features/parallelism | |
parent | 29e539bad01c06a7e9655b5c33a88f05455124ad (diff) | |
download | gunmake-24aac7f8f6c72d60ce7c9f80868cbf21fb458072.tar.gz |
Add some alloca(0) calls for systems without "normal" alloca support.
Fix a file descriptor leak with make re-exec while using the jobserver.
Update some release information.
Diffstat (limited to 'tests/scripts/features/parallelism')
-rw-r--r-- | tests/scripts/features/parallelism | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/scripts/features/parallelism b/tests/scripts/features/parallelism index 60ae55b..528c653 100644 --- a/tests/scripts/features/parallelism +++ b/tests/scripts/features/parallelism @@ -126,4 +126,33 @@ mod_a.o mod_b.o: ', '-j2', ''); +# Make sure that all jobserver FDs are closed if we need to re-exec the +# master copy. + +run_make_test(' +submake: ; @$(MAKE) --no-print-directory -f #MAKEFILE# fdprint 5>output + +dependfile: ; @echo FOO=bar > $@ + +INCL := true + +FOO=foo +ifeq ($(INCL),true) +-include dependfile +endif + +fdprint: ; @echo hi >&5 && echo "$(FOO)" + +recurse: ; @$(MAKE) --no-print-directory -f #MAKEFILE# submake INCL=true', + '-j2', + 'bar'); + +unlink('dependfile'); + + +# Do it again, this time where the include is done by the non-master make. +run_make_test(undef, '-j2 recurse INCL=false', 'bar'); + +unlink('dependfile'); + 1; |