diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-15 15:05:18 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-15 15:21:33 -0400 |
commit | a4d8444b594e53b13659a9f2c64424418f255e27 (patch) | |
tree | 13315e9de3f19f3a144774a008bd3100633a31c3 /tests/scripts/features/parallelism | |
parent | 0a81d50d66565fd3e930fadaadc4a5cb9381d840 (diff) | |
download | gunmake-a4d8444b594e53b13659a9f2c64424418f255e27.tar.gz |
[SV 39934] Verify jobserver FDs before something else uses them.
Diffstat (limited to 'tests/scripts/features/parallelism')
-rw-r--r-- | tests/scripts/features/parallelism | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/scripts/features/parallelism b/tests/scripts/features/parallelism index a895517..6e8376d 100644 --- a/tests/scripts/features/parallelism +++ b/tests/scripts/features/parallelism @@ -254,6 +254,26 @@ true '); } +# Test recursion when make doesn't think it exists. +# See Savannah bug #39934 +# Or Red Hat bug https://bugzilla.redhat.com/show_bug.cgi?id=885474 + +open(MAKEFILE,"> Makefile2"); +print MAKEFILE <<EOF; +vpath %.c $ENV{HOME}/ +foo: +EOF +close(MAKEFILE); + +run_make_test(q! +default: ; @ #MAKEPATH# -f Makefile2 +!, + '-j2 --no-print-directory', +"#MAKE#[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. +#MAKE#[1]: Nothing to be done for 'foo'."); + +unlink('Makefile2'); + # Make sure that all jobserver FDs are closed if we need to re-exec the # master copy. # |