make/tests/scripts
Dmitry Goncharov 1b51ba1f5d [SV 63333] Be more lenient when failing to create temporary files
If make cannot create a temporary lock file for output sync, continue
without output sync enabled rather than dying.

However, if make cannot store a makefile from stdin to a temporary
file that is still a fatal error.

* misc.c (get_tmppath): Keep running on failure to generate a
temporary file name.
(get_tmpfd): Keep running on failure to get a temporary file.
(get_tmpfile): Keep running on failure to open a temporary file.
Ensure memory is freed if we return an error.
* posixos.c (os_anontmp): Keep running on failure to open an
anonymous temporary file.
* output.c (setup_tmpfile): Print an error on failure to create an
output sync lock file.
* main.c (main): Die on failure to store makefile from stdin to a
temporary file.
* tests/scripts/features/output-sync: Add tests.
* tests/scripts/features/temp_stdin: Ditto.
2022-11-13 16:34:01 -05:00
..
features [SV 63333] Be more lenient when failing to create temporary files 2022-11-13 16:34:01 -05:00
functions Fix issues found by ASAN and Coverity 2022-10-31 02:23:04 -04:00
misc Enhance tests to work on different systems 2022-10-22 22:37:49 -04:00
options Enhance tests to work on different systems 2022-10-22 22:37:49 -04:00
targets Fix issues found by ASAN and Coverity 2022-10-31 02:23:04 -04:00
variables Fix tests for MacOS and Windows 2022-08-30 21:05:34 -04:00
vms Refresh the test suite framework implementation. 2019-09-16 08:25:33 -04:00
test_template