make/tests/scripts
Paul Smith c5319e75f5 [SV 58497] Ensure $(file <) newline removal succeeds
Keep a count of bytes read rather than comparing pointers since the
variable_buffer might get reallocated.

Bug and patch by Ken Tossell <ken@tossell.net>
Regression tests by Dmitry Goncharov <dgoncharov@users.sf.net>
Tweaked by Paul Smith <psmith@gnu.org>

* src/function.c (func_file): Use bytes read rather than a pointer.
* tests/scripts/functions/file: Provide various tests for reading
empty files, files with/without newlines, and large files.
2021-03-15 03:28:11 -04:00
..
features [SV 60188] Explicit prereqs cannot be intermediate files 2021-03-15 02:10:49 -04:00
functions [SV 58497] Ensure $(file <) newline removal succeeds 2021-03-15 03:28:11 -04:00
misc [SV 35711] Check for special targets earlier 2020-11-29 17:55:02 -05:00
options tests: Simplify customization of %ENV 2020-04-01 02:02:57 -04:00
targets [SV 35711] Check for special targets earlier 2020-11-29 17:55:02 -05:00
variables [SV 59870] define/undefine prerequisites are not target-specific vars 2021-03-14 16:35:38 -04:00
vms Refresh the test suite framework implementation. 2019-09-16 08:25:33 -04:00
test_template Update the test template. A few fixes in run_make_test(). 2004-09-22 04:36:17 +00:00