diff options
author | Paul Smith <psmith@gnu.org> | 2012-09-10 02:36:05 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2012-09-10 02:36:05 +0000 |
commit | fbe5b2c9cd612b962836b9391fa2b58c8baed6fc (patch) | |
tree | d68ac63b3992c85f9c80110bcc8a6d11ad4c47ca /tests/scripts/features/parallelism | |
parent | a94b0b0ea58767eb204a1ebc8fb30b913d66a64c (diff) | |
download | gunmake-fbe5b2c9cd612b962836b9391fa2b58c8baed6fc.tar.gz |
Force intermediate targets to be considered if their non-intermediate
parent needs to be remade. Fixes Savannah bug #30653.
Diffstat (limited to 'tests/scripts/features/parallelism')
-rw-r--r-- | tests/scripts/features/parallelism | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/scripts/features/parallelism b/tests/scripts/features/parallelism index d4250f0..76d24a7 100644 --- a/tests/scripts/features/parallelism +++ b/tests/scripts/features/parallelism @@ -214,6 +214,23 @@ rm main.x"); rmfiles(qw(foo.y foo.y.in main.bar)); } +# Ensure intermediate/secondary files are not pruned incorrectly. +# See Savannah bug #30653 + +utouch(-15, 'file2'); +utouch(-10, 'file4'); +utouch(-5, 'file1'); + +run_make_test(q! +.INTERMEDIATE: file3 +file4: file3 ; @mv -f $< $@ +file3: file2 ; touch $@ +file2: file1 ; @touch $@ +!, + '--no-print-directory -j2', "touch file3"); + +#rmfiles('file1', 'file2', 'file3', 'file4'); + if ($all_tests) { # Jobserver FD handling is messed up in some way. # Savannah bug #28189 |