make/tests/scripts/features
Dmitry Goncharov ee861a4e9f [SV 63045] Reload each intact unloaded shared object
If makefile rules do not update an unloaded shared object, load it
again.  Avoid double loading of the same object if the setup function
returns -1.

* src/filedef.h (struct file): Add "unloaded" flag.
* src/makeint.h (load_file): Take struct file *.
(unload_file): Return int.
* src/main.c (main): Reload unloaded shared objects if they weren't
updated.
* src/commands.c (execute_file_commands): Set "unloaded" and reset
"loaded" when a shared object is unloaded.
* src/read.c (eval): Set "loaded" and reset "unloaded" when a shared
object is loaded.  Add successfully loaded files to the db.
* src/load.c (load_file): Check "loaded" to avoid double loading the
same object.  Fix a memory leak of string loaded.  Return -1, rather
than 1, if the object is already loaded. This fixes double loading of
the same object when the setup routine returns -1.
(load_object): Add a log message.
(unload_file): Return an error on dlclose failure.  Log a message.
* tests/scripts/features/loadapi: Add new tests.
2022-09-12 02:05:18 -04:00
..
archives * tests/scripts/features/archives: Fix typo 2022-06-04 19:04:37 -04:00
comments * Added the test suite to the main distribution. 1999-09-14 02:03:19 +00:00
conditionals * read.c (eval): [SV 47960] Skip record waiting files when ignoring. 2016-05-21 16:22:32 -04:00
default_names Clean up some tests for use on Windows. 2013-10-05 19:30:48 -04:00
dircache [SV 41273] Allow the directory cache to be invalidated 2020-11-29 17:59:16 -05:00
double_colon * tests/scripts/features/double_colon: Update for modern tests. 2022-02-06 18:46:32 -05:00
echoing Portability changes for the test suite. 2016-12-26 09:01:59 -05:00
errors * tests/scripts/features/errors: Fix Perl warnings 2022-04-18 16:57:06 -04:00
escape Add test suite support to Windows 2017-06-04 18:37:20 -04:00
exec * tests/scripts/features/exec: Small cleanup 2021-03-15 01:17:06 -04:00
export Support "unexport" in target-specific variables. 2020-11-29 17:57:33 -05:00
grouped_targets [SV 48643] Add more tests of intermediates and unrelated targets 2022-02-06 18:46:32 -05:00
implicit_search * tests/scripts/features/implicit_search: Add -r for safety. 2022-02-06 18:46:32 -05:00
include tests: Allow run_make_test() to avoid passing -f 2022-02-27 17:47:42 -05:00
jobserver Support the MAKE_TMPDIR environment variable 2022-09-11 10:56:08 -04:00
load [SV 63044] load: Update .LOADED if the setup function returns -1 2022-09-10 22:42:28 -04:00
loadapi [SV 63045] Reload each intact unloaded shared object 2022-09-12 02:05:18 -04:00
mult_rules [SV 62650] Show correct warning when combining targets 2022-07-09 10:44:00 -04:00
mult_targets * Added the test suite to the main distribution. 1999-09-14 02:03:19 +00:00
order_only Make second expansion optional (partial implementation). 2005-10-24 13:01:39 +00:00
output-sync Rename jhelp.pl to thelp.pl and make it a generic test helper. 2019-12-16 09:31:31 -05:00
override - Modify access of config and gnulib Savannah modules to use GIT 2009-06-04 06:30:27 +00:00
parallelism tests: Simplify customization of %ENV 2020-04-01 02:02:57 -04:00
patspecific_vars [SV 39709] Fix some typos. 2013-10-09 01:53:55 -04:00
patternrules [SV 62206] Fix %-substitution in second expansion of pattern rules 2022-04-24 17:52:07 -04:00
quoting Add test suite support to Windows 2017-06-04 18:37:20 -04:00
recursion [SV 46013] Allow recursive variable overrides from Makefiles 2019-05-19 19:25:50 -04:00
reinvoke * tests/scripts/features/reinvoke: [SV 62088] Close STDIN 2022-04-24 13:48:03 -04:00
rule_glob [Bug #39310] Parse simple pattern prereqs for globbing. 2013-07-22 02:23:02 -04:00
se_explicit Fix tests for MacOS and Windows 2022-08-30 21:05:34 -04:00
se_implicit Fix tests for MacOS and Windows 2022-08-30 21:05:34 -04:00
se_statpat Fix tests for MacOS and Windows 2022-08-30 21:05:34 -04:00
shell_assignment Add new feature: != shell assignment for portability with BSD make. 2011-04-18 01:25:20 +00:00
statipattrules * tests/scripts/features/temp_stdin: Remove nested "my" 2022-06-04 19:04:37 -04:00
suffixrules [SV 40657] Reinstate old behavior for suffix rules with prereqs 2020-01-19 17:04:52 -05:00
targetvars Special-case Windows error results 2021-11-28 14:27:10 -05:00
temp_stdin [SV 63037] Fix tests for newer OS / compiler 2022-09-10 17:15:23 -04:00
utf8 Ignore UTF-8 BOMs. See Savannah bug #36529. 2012-09-09 21:11:00 +00:00
varnesting Save strings we're expanding in case an embedded eval causes them 2011-08-29 16:20:19 +00:00
vpath Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines. 2012-03-04 00:24:20 +00:00
vpath2 Refresh the test suite framework implementation. 2019-09-16 08:25:33 -04:00
vpath3 [SV 41758]: Fix archive support for VMS. 2014-10-20 01:31:42 -04:00
vpathgpath * tests/scripts/features/vpathgpath: Avoid duplicate function name. 2020-11-29 17:59:40 -05:00
vpathplus * tests/scripts/features/vpathplus: Fix output for big-endian systems. 2019-09-22 17:35:51 -04:00