1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-01 11:14:55 +00:00
emacs/test/data
Philipp Stephani b7dab24b79 Module assertions: check for garbage collections
It's technically possible to write a user pointer finalizer that calls
into Emacs module functions.  This would be disastrous because it
would allow arbitrary Lisp code to run during garbage collection.
Therefore extend the module assertions to check for this case.

* src/emacs-module.c (module_assert_thread): Also check whether a
garbage collection is in progress.

* test/data/emacs-module/mod-test.c (invalid_finalizer)
(Fmod_test_invalid_finalizer): New test module functions.
(emacs_module_init): Register new test function.

* test/src/emacs-module-tests.el (module--test-assertion)
(module--with-temp-directory): New helper macros.
(module--test-assertions--load-non-live-object): Rename existing
unit test, use helper macros.
(module--test-assertions--call-emacs-from-gc): New unit test.
2017-07-08 15:25:01 +02:00
..
decompress
emacs-module Module assertions: check for garbage collections 2017-07-08 15:25:01 +02:00
epg Fix epg-tests with dummy-pinentry program (Bug#23619) 2017-02-28 19:57:35 -05:00
image Add image sizing tests for an image that's narrow 2017-04-24 07:56:31 +02:00
net Move the cert files to the data directory 2016-03-20 16:08:55 +01:00
shr Encode the shr tests files with trailing white space 2016-04-24 15:18:29 +02:00
xref Port xref-tests to master branch 2016-05-06 10:09:53 -07:00
files-bug18141.el.gz
somelib2.el Put re-loaded file back at start of load-history (bug#26837) 2017-05-09 19:44:09 -04:00
somelib.el Put re-loaded file back at start of load-history (bug#26837) 2017-05-09 19:44:09 -04:00