make/tests/scripts
Paul Smith 3176b60566 [SV 64085] Handle .POSIX plus .IGNORE correctly
POSIX requires that a conforming makefile should not use -e if
 1) make is invoked with -i
 2) A .IGNORE target exists with no prerequisites
 3) The current target is a prerequisite of .IGNORE

* src/job.c (start_job_command): Add the target's flags when
constructing argv so it can check (3) above.
(construct_command_argv_internal): Don't set shellflags if it's not
set: this only happens if we're parsing for the slow path and we
don't need them.
(construct_command_argv): Don't allocate buffers if not needed.
When detecting "-ec", check the global ignore_errors_flag and the
current command line flags.
* tests/scripts/targets/IGNORE: Add tests for .IGNORE.
* tests/scripts/targets/POSIX: Add tests for the three cases above.
2024-02-04 19:41:50 -05:00
..
features [SV 65211] Fix load and loadapi tests. 2024-01-27 16:40:36 -05:00
functions [SV 64803] Set origin for unmodified variables after -e 2024-02-04 11:34:49 -05:00
misc tests: Run each file in a separate directory 2023-04-02 17:32:09 -04:00
options [SV 64803] Set origin for unmodified variables after -e 2024-02-04 11:34:49 -05:00
targets [SV 64085] Handle .POSIX plus .IGNORE correctly 2024-02-04 19:41:50 -05:00
variables [SV 64822, SV 36486] Fix appending to a pattern specific variable 2024-02-04 18:26:21 -05:00
vms Convert references from "GNU make" to "GNU Make" 2023-01-01 17:05:12 -05:00
test_template Update the test template. A few fixes in run_make_test(). 2004-09-22 04:36:17 +00:00