make/tests/scripts/options
Sergei Trofimovich ca4234c4b5 [SV 63047] Fix shuffle of SECONDEXPANSION prerequisites
Commit 07eea3aa4 `make --shuffle` prevented shuffling prerequisites
that use .SECONDEXPANSION, since shuffle happens before expansion.
This has two problems:
1. No shuffling happens for such prerequisites.
2. Use-after-free when outdated '->shuf' links are used.

Add a reshuffle into expansion phase right after dependency changes.

* src/file.c (expand_deps): Add reshuffle if dependencies change.
* src/shuffle.c (identity_shuffle_array): Fix comment typo.
* tests/scripts/options/shuffle: Add new SECONDEXPANSION test.
2022-09-12 01:05:31 -04:00
..
dash-B
dash-C Refresh the test suite framework implementation. 2019-09-16 08:25:33 -04:00
dash-d * src/main.c (decode_debug_flags): [SV 607777] Preserve -d options 2021-09-06 20:36:15 -04:00
dash-e tests: Simplify customization of %ENV 2020-04-01 02:02:57 -04:00
dash-f * tests/scripts/options/dash-f: [SV 62118] Close STDIN 2022-04-24 13:48:03 -04:00
dash-I tests: Enhance output to contain filename/line number info 2021-11-27 14:03:44 -05:00
dash-k [SV 60595] Restart whenever any makefile is rebuilt 2021-09-03 12:08:11 -04:00
dash-l * tests/scripts/options/dash-l: [SV 62172] Skip if not available 2022-04-24 10:39:32 -04:00
dash-n * tests/run_make_test.pl: Fix support for valgrind. 2019-09-21 15:13:24 -04:00
dash-q
dash-r [SV 62356] If -R is set in the makefile, disable -r 2022-04-24 10:39:32 -04:00
dash-s
dash-t
dash-W
eval Add test suite support to Windows 2017-06-04 18:37:20 -04:00
general Add test suite support to Windows 2017-06-04 18:37:20 -04:00
print-directory Obey order of multiple print/no-print directory options 2020-03-31 00:17:49 -04:00
shuffle [SV 63047] Fix shuffle of SECONDEXPANSION prerequisites 2022-09-12 01:05:31 -04:00
symlinks * tests: Convert from File::Spec::Functions to File::Spec. 2019-09-21 16:37:56 -04:00
warn-undefined-variables