]> git.eshelyaron.com Git - emacs.git/commit
Backport: Add module test for edge case.
authorPhilipp Stephani <phst@google.com>
Sat, 25 Jul 2020 21:04:05 +0000 (23:04 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 26 Jul 2020 12:31:49 +0000 (14:31 +0200)
commitbde5f5f8978f704f24cce2fc7beec8c740d0e331
treea0d974e7ac975edc32270ce203db24ea6290982d
parent4b3085a7fe8980432aa63ddf614fee2a6fb04e94
Backport: Add module test for edge case.

This backports commit 6355a3ec62 from master.  Since the bug isn’t
present in emacs-27, just backport the test case.

* test/data/emacs-module/mod-test.c
(Fmod_test_invalid_store_copy): New test module function.
(emacs_module_init): Export it.

* test/src/emacs-module-tests.el
(module--test-assertions--load-non-live-object-with-global-copy):
New unit test.
test/data/emacs-module/mod-test.c
test/src/emacs-module-tests.el