Backport: add another test case for module assertions.

This backports commit 9f01ce63 from master.  Since the bug isn’t
present on emacs-27, just backport the new test case.

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

* test/src/emacs-module-tests.el
(module--test-assertions--globref-invalid-free): New unit test.
1 job for emacs-27 in 60 minutes and 21 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #6730
test-all

01:00:21